diff options
Diffstat (limited to 'unity-shared/CMakeLists.txt')
| -rw-r--r-- | unity-shared/CMakeLists.txt | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/unity-shared/CMakeLists.txt b/unity-shared/CMakeLists.txt index d1bd61857..28dcc84e8 100644 --- a/unity-shared/CMakeLists.txt +++ b/unity-shared/CMakeLists.txt @@ -5,7 +5,6 @@ find_package (PkgConfig) set (CFLAGS ${CACHED_UNITY_DEPS_CFLAGS} ${CACHED_UNITY_DEPS_CFLAGS_OTHER} - ${MAINTAINER_CFLAGS} "-DGETTEXT_PACKAGE=\"unity\"" "-I${CMAKE_CURRENT_BINARY_DIR}" ) @@ -53,6 +52,7 @@ set (UNITY_SHARED_SOURCES SearchBarSpinner.cpp StaticCairoText.cpp TextureCache.cpp + TextInput.cpp TextureThumbnailProvider.cpp ThumbnailGenerator.cpp Timer.cpp @@ -64,10 +64,21 @@ set (UNITY_SHARED_SOURCES UnityWindowView.cpp UserThumbnailProvider.cpp WindowManager.cpp - XKeyboardUtil.cpp - XWindowManager.cpp ) +if(UNITY_ENABLE_X_ORG_SUPPORT) + set (UNITY_SHARED_SOURCES + XKeyboardUtil.cpp + XWindowManager.cpp + ${UNITY_SHARED_SOURCES} + ) +else() + set (UNITY_SHARED_SOURCES + FakeKeyboardUtil.cpp + ${UNITY_SHARED_SOURCES} + ) +endif() + add_library (unity-shared STATIC ${UNITY_SHARED_SOURCES}) target_link_libraries (unity-shared ${LIBS}) add_dependencies (unity-shared unity-core-${UNITY_API_VERSION}) @@ -76,14 +87,16 @@ add_dependencies (unity-shared unity-core-${UNITY_API_VERSION}) # We also need to build compiz specific parts and standalone variants of those parts # -# compiz -set (UNITY_SHARED_COMPIZ_SOURCES - PluginAdapter.cpp - ) -add_library (unity-shared-compiz STATIC ${UNITY_SHARED_COMPIZ_SOURCES}) -target_link_libraries (unity-shared-compiz ${LIBS}) +if(UNITY_ENABLE_X_ORG_SUPPORT) + # compiz + set (UNITY_SHARED_COMPIZ_SOURCES + PluginAdapter.cpp + ) + add_library (unity-shared-compiz STATIC ${UNITY_SHARED_COMPIZ_SOURCES}) + target_link_libraries (unity-shared-compiz ${LIBS}) -add_dependencies (unity-shared-compiz unity-shared) + add_dependencies (unity-shared-compiz unity-shared) +endif() # standalone set (UNITY_SHARED_STANDALONE_SOURCES |
