blob: eddc807666ce1591f1f60522bcaa6b8d5752ea09 (
plain)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | set(UNITY_SRC ../plugins/unityshell/src) set (CFLAGS ${CACHED_UNITY_DEPS_CFLAGS} ${CACHED_UNITY_DEPS_CFLAGS_OTHER} ${PIC_FLAGS} ) string (REPLACE ";" " " CFLAGS "${CFLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}") set (LIBS ${CACHED_UNITY_DEPS_LDFLAGS} ${UNITY_STANDALONE_LADD}) include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) # # Headers & Sources # set (UNITY_SHARED_SOURCES ApplicationManager.cpp AppStreamApplication.cpp BGHash.cpp CoverArt.cpp BackgroundEffectHelper.cpp DashStyle.cpp DebugDBusInterface.cpp DecorationStyle.cpp DefaultThumbnailProvider.cpp DeltaRestrainment.cpp DesktopApplicationManager.cpp EMConverter.cpp ExpanderView.cpp FileManager.cpp GnomeFileManager.cpp FontSettings.cpp GraphicsUtils.cpp IMTextEntry.cpp IconLoader.cpp IconRenderer.cpp IconTexture.cpp IconTextureSource.cpp Introspectable.cpp IntrospectableWrappers.cpp IntrospectionData.cpp JSONParser.cpp LayoutSystem.cpp LineSeparator.cpp MenuManager.cpp NemoFileManager.cpp OverlayRenderer.cpp OverlayScrollView.cpp OverlayWindowButtons.cpp PanelStyle.cpp PlacesVScrollBar.cpp PlacesOverlayVScrollBar.cpp PreviewStyle.cpp RatingsButton.cpp RawPixel.cpp ResizingBaseWindow.cpp SearchBar.cpp SearchBarSpinner.cpp SpreadFilter.cpp SpreadWidgets.cpp StaticCairoText.cpp SystemdWrapper.cpp TextureCache.cpp TextInput.cpp TextureThumbnailProvider.cpp ThemeSettings.cpp ThumbnailGenerator.cpp Timer.cpp UBusServer.cpp UBusWrapper.cpp UScreen.cpp UnitySettings.cpp UnityWindowStyle.cpp UnityWindowView.cpp UpstartWrapper.cpp UserThumbnailProvider.cpp WindowButtons.cpp WindowManager.cpp ) if(ENABLE_X_SUPPORT) set (UNITY_SHARED_SOURCES XKeyboardUtil.cpp XWindowManager.cpp InputMonitor.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}) add_pch(pch/unity-shared_pch.hh unity-shared) # # We also need to build compiz specific parts and standalone variants of those parts # if (ENABLE_X_SUPPORT) # compiz set (UNITY_SHARED_COMPIZ_SOURCES CompizUtils.cpp PluginAdapter.cpp GnomeKeyGrabber.cpp ) find_package (PkgConfig) pkg_check_modules (COMPIZ REQUIRED compiz) pkg_check_modules (COMPIZ_OPENGL REQUIRED compiz-opengl) add_library (unity-shared-compiz STATIC ${UNITY_SHARED_COMPIZ_SOURCES}) # This makes linker to include library dir in RUNPATH find_library (COMPIZ_LIB compiz_core ${COMPIZ_LIBDIR}) find_library (COMPIZ_OPENGL_LIB opengl ${COMPIZ_OPENGL_LIBDIR}) target_link_libraries (unity-shared-compiz ${LIBS} ${COMPIZ_LIB} ${COMPIZ_LDFLAGS} ${COMPIZ_OPENGL_LIB} ${COMPIZ_OPENGL_LDFLAGS}) add_dependencies (unity-shared-compiz unity-shared) # bamf application manager set (UNITY_SHARED_BAMF_SOURCES DesktopApplicationManager.cpp BamfApplicationManager.cpp BamfApplicationManagerFactory.cpp ) add_library (unity-shared-bamf STATIC ${UNITY_SHARED_BAMF_SOURCES}) target_link_libraries (unity-shared-bamf ${LIBS}) add_dependencies (unity-shared-bamf unity-shared) endif() # standalone set (UNITY_SHARED_STANDALONE_SOURCES StandaloneWindowManager.cpp ) add_library (unity-shared-standalone STATIC ${UNITY_SHARED_STANDALONE_SOURCES}) target_link_libraries (unity-shared-standalone ${LIBS}) add_dependencies (unity-shared-standalone unity-shared) add_executable (app-manager StandaloneAppManager.cpp) add_dependencies (app-manager unity-shared unity-shared-bamf unity-shared-standalone) target_link_libraries (app-manager unity-shared unity-shared-bamf unity-shared-standalone) add_executable (decorations-style StandaloneDecorationStyle.cpp) add_dependencies (decorations-style unity-shared) target_link_libraries (decorations-style unity-shared)
|