aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2015-01-04 00:31:33 +0800
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-04 17:58:03 -0700
commit19f61a5cb8abdca8fb8a0a952f0cde7d113195ff (patch)
tree6bcd1eed2921ac4b6faf58b719f600216f8bdc81
parentfb743de50680ffea64979aa969efface2beb6ea8 (diff)
downloadusermoji-19f61a5cb8abdca8fb8a0a952f0cde7d113195ff.tar.xz
icd: build a static library
libicd was an OBJECT library because it provided the XGL entry points. That is not true anymore. Make it a STATIC library. v2: - update .gitignore - stop adding CMAKE_CURRENT_BINARY_DIR to ICD_INCLUDE_DIRS, unnecessary since the switch to xglLayer.h some time ago v3: Make icd appear before ICD_LIBRARIES during linking of libXGL_i965.so. It looks like we can do better now that icd is a regular library, but leave it as is for now.
-rw-r--r--.gitignore1
-rw-r--r--icd/common/CMakeLists.txt8
2 files changed, 2 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 4e4fe6f5..c4509a97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ __pycache__
XGLConfig.h
*.so
*.so.*
+icd/common/libicd.a
loader/dispatch.c
tests/xgl_image_tests
tests/xgl_render_tests
diff --git a/icd/common/CMakeLists.txt b/icd/common/CMakeLists.txt
index 3eb6752a..b9700d9d 100644
--- a/icd/common/CMakeLists.txt
+++ b/icd/common/CMakeLists.txt
@@ -13,15 +13,9 @@ endif()
pkg_check_modules(ICD REQUIRED ${ICD_REQUIRED_MODULES})
-# icd-dispatch-table.h was generated in ${CMAKE_CURRENT_BINARY_DIR}
-set(ICD_INCLUDE_DIRS
- ${ICD_INCLUDE_DIRS}
- ${CMAKE_CURRENT_BINARY_DIR}
- CACHE INTERNAL "")
-
include_directories(
${ICD_INCLUDE_DIRS}
)
-add_library(icd OBJECT ${ICD_SOURCES})
+add_library(icd STATIC ${ICD_SOURCES})
set_target_properties(icd PROPERTIES POSITION_INDEPENDENT_CODE ON)