[Cmake-commits] CMake branch, next, updated. v3.7.0-rc3-1078-gd54b557

Brad King brad.king at kitware.com
Thu Nov 10 13:32:51 EST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  d54b5572bf91c0be866b1049421209d2a0320336 (commit)
       via  3cfad71c775e648a8cc9e20726bf4d5ea2f52202 (commit)
      from  eb88b91ae35aecb639a3614a308d4e042798e4d9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d54b5572bf91c0be866b1049421209d2a0320336
commit d54b5572bf91c0be866b1049421209d2a0320336
Merge: eb88b91 3cfad71
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Nov 10 13:32:48 2016 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Nov 10 13:32:48 2016 -0500

    Merge topic 'fuchsia-platform' into next
    
    3cfad71c Add Fuchsia platform module


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3cfad71c775e648a8cc9e20726bf4d5ea2f52202
commit 3cfad71c775e648a8cc9e20726bf4d5ea2f52202
Author:     Petr Hosek <phosek at google.com>
AuthorDate: Wed Nov 9 12:30:39 2016 -0800
Commit:     Petr Hosek <phosek at google.com>
CommitDate: Wed Nov 9 13:58:12 2016 -0800

    Add Fuchsia platform module
    
    Fuchsia is a new operating system. This module provides a minimal
    setup needed to use Fuchsia toolchain.

diff --git a/Help/release/dev/fuchsia-platform.rst b/Help/release/dev/fuchsia-platform.rst
new file mode 100644
index 0000000..9d5f3e8
--- /dev/null
+++ b/Help/release/dev/fuchsia-platform.rst
@@ -0,0 +1,4 @@
+fuchsia-platform
+----------------
+
+* A new minimal platform file for Fuchsia was added.
diff --git a/Modules/Platform/Fuchsia.cmake b/Modules/Platform/Fuchsia.cmake
new file mode 100644
index 0000000..896da7b
--- /dev/null
+++ b/Modules/Platform/Fuchsia.cmake
@@ -0,0 +1,25 @@
+set(FUCHSIA 1)
+
+set(CMAKE_DL_LIBS "")
+set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
+set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
+set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
+set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
+set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
+set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
+set(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
+set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
+set(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
+
+# Shared libraries with no builtin soname may not be linked safely by
+# specifying the file path.
+set(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
+
+# Initialize C link type selection flags.  These flags are used when
+# building a shared library, shared module, or executable that links
+# to other libraries to select whether to use the static or shared
+# versions of the libraries.
+foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
+  set(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
+  set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
+endforeach()

-----------------------------------------------------------------------

Summary of changes:
 Help/release/dev/fuchsia-platform.rst             |    4 ++++
 Modules/Platform/{FreeBSD.cmake => Fuchsia.cmake} |   13 ++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)
 create mode 100644 Help/release/dev/fuchsia-platform.rst
 copy Modules/Platform/{FreeBSD.cmake => Fuchsia.cmake} (68%)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list