change default symbol visibility to hidden
authorJacob Lifshay <programmerjake@gmail.com>
Sat, 2 Sep 2017 01:48:26 +0000 (18:48 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Sat, 2 Sep 2017 01:48:26 +0000 (18:48 -0700)
13 files changed:
CMakeLists.txt
src/CMakeLists.txt
src/demo/CMakeLists.txt
src/generate_spirv_parser/CMakeLists.txt
src/image/CMakeLists.txt
src/json/CMakeLists.txt
src/llvm_wrapper/CMakeLists.txt
src/llvm_wrapper/llvm_wrapper.cpp
src/pipeline/CMakeLists.txt
src/spirv/CMakeLists.txt
src/spirv_to_llvm/CMakeLists.txt
src/util/CMakeLists.txt
src/vulkan/CMakeLists.txt

index 4c264ebce451e31b4d27ac9c0a67cb13a37f173f..da0f0e1fe4bd37a9829ab91096927e44adcdbc3c 100644 (file)
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 
 set(CMAKE_CXX_STANDARD 14)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_C_VISIBILITY_PRESET hidden)
+set(CMAKE_CXX_VISIBILITY_PRESET hidden)
 
 project(vulkan-cpu CXX C)
 if(NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
index cdfb7010d9837c34a7387b21016932093bc565bc..9f4d130f5d02c6dd4ca0dd42575133ea43acce17 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 add_subdirectory(demo)
 add_subdirectory(generate_spirv_parser)
index 15209c772f765a4ec58b7e69d1e0819bfbf4fe9c..0bb3086520ad4496970eb1c536d2c91f22449b6d 100644 (file)
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 find_package(SDL2 REQUIRED)
 string(STRIP ${SDL2_LIBRARIES} libraries) # workaround SDL2 automake bug
 set(sources demo.cpp) 
 add_executable(demo ${sources})
 target_include_directories(demo PRIVATE ${SDL2_INCLUDE_DIRS})
 target_link_libraries(demo ${libraries} vulkan_cpu_spirv vulkan_cpu_util vulkan_cpu_pipeline vulkan_cpu_vulkan)
+set_target_properties(demo PROPERTIES
+                      C_VISIBILITY_PRESET hidden
+                      CXX_VISIBILITY_PRESET hidden)
index ba4f408543586f034b16e6f17af33ffc59577f10..4b9c97975d2c8b49c4304561209e6940dda9121c 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 set(sources ast.cpp
             generate.cpp
             generate_spirv_parser.cpp
index 297725fa5963eb02316a4eaf581e82b151d57f36..f4af74a8468f140496a93e32bdde0f993cbb4484 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 set(sources image.cpp) 
 add_library(vulkan_cpu_image STATIC ${sources})
 target_link_libraries(vulkan_cpu_image vulkan_cpu_util vulkan_cpu_llvm_wrapper vulkan_cpu_vulkan)
index eab6d413c2f9bd8e96476b71aad457e0b7f6a362..d0ac3dc26eb411f84c06f2fb37300fac5d2e12e7 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 set(sources json.cpp
             location.cpp
             parser.cpp
index d4c54089a6fa6229d14ffcff54f4c37c83b4416e..ad401917376608f22a4701437ae29d2d9743d93e 100644 (file)
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 
 set(sources llvm_wrapper.cpp
             orc_compile_stack.cpp)
 add_library(vulkan_cpu_llvm_wrapper STATIC ${sources})
-if(1)
+if(0)
 llvm_map_components_to_libnames(llvm_libraries core native analysis orcjit mcjit nativecodegen ipo scalaropts vectorize)
 else()
 set(llvm_libraries LLVM)
index 46c6cfd8d36babb494998bfa79892330529a3e20..7473d00141174d4b49d0460eed24352f01cc0f99 100644 (file)
@@ -53,6 +53,7 @@ void Context::init_helper()
         throw std::runtime_error("LLVMInitializeNativeAsmPrinter failed");
     if(::LLVMInitializeNativeDisassembler() != 0)
         throw std::runtime_error("LLVMInitializeNativeDisassembler failed");
+#if 0
     static struct LLVM_shutdown
     {
         ~LLVM_shutdown()
@@ -60,6 +61,7 @@ void Context::init_helper()
             ::LLVMShutdown();
         }
     } llvm_shutdown;
+#endif
 }
 
 LLVM_string Target::get_process_target_triple()
index 1b73327b02b1855de7cd6115bce0facd694d58c8..127767c47e8e8d9d2023c0b87b543b971c1f40b3 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 
 set(sources pipeline.cpp)
 add_library(vulkan_cpu_pipeline STATIC ${sources})
index 5ccefc31eb6e102841eb8e293fd4e69b58fad76f..12ed97f57480c5d3fcf625aed0d7673050e2e02f 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 
 set(sources literal_string.cpp)
 
index df9701bc9f3ef3ed431d47cee6b064628803e631..43274e7cbd77d999bc6040612ecfb44de36da2d6 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 
 set(sources core_instructions.cpp
             fragment_entry_point.cpp
index 4a8e995e8fc5781422445a885cb3f90fac3ace93..df1546370920c0d56a5a166fcdaa76c1e81defad 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 include(TestBigEndian)
 TEST_BIG_ENDIAN(is_big_endian)
 if(is_big_endian)
index d079c0c47b8cc317f2e304d4e2f3290c44bb8b6b..e1a1ff28575efc2dad05fb9631fb4aedf81ad8d5 100644 (file)
@@ -18,7 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 #
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
 set(sources vulkan.cpp)
 add_library(vulkan_cpu_vulkan STATIC ${sources})
 target_compile_definitions(vulkan_cpu_vulkan PUBLIC VK_NO_PROTOTYPES)