File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,15 @@ if(NOT DISABLE_X86_SIMD)
156156 endif ()
157157endif ()
158158
159+ # collect all the locale files to install
160+ file (GLOB LOCALE_FILES "data/locale/*.ini" )
161+
162+ if (MAKE_BUNDLE)
163+ set_source_files_properties (${LOCALE_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/locale" )
164+ set_source_files_properties ("data/gradient.effect" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources" )
165+ list (APPEND PLUGIN_SOURCES ${LOCALE_FILES} "data/gradient.effect" )
166+ endif ()
167+
159168add_library (waveform MODULE ${PLUGIN_SOURCES} )
160169target_include_directories (waveform PRIVATE ${LIBOBS_INCLUDE_DIRS} ${FFTW_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} /include )
161170target_link_libraries (waveform PRIVATE ${LIBOBS_LIBRARIES} ${FFTW_LIBRARIES} )
@@ -169,9 +178,6 @@ else()
169178 target_compile_options (waveform PRIVATE "-Wall" "-Wextra" )
170179endif ()
171180
172- # collect all the locale files to install
173- file (GLOB LOCALE_FILES "data/locale/*.ini" )
174-
175181# OSX bundles
176182if (APPLE )
177183 set_target_properties (waveform PROPERTIES PREFIX "" )
@@ -187,9 +193,6 @@ if(APPLE)
187193 MACOSX_BUNDLE_COPYRIGHT "GPLv3"
188194 MACOSX_BUNDLE_INFO_STRING "Audio visualization plugin for OBS Studio"
189195 )
190- set_source_files_properties (${LOCALE_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/locale" )
191- set_source_files_properties ("data/gradient.effect" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources" )
192- list (APPEND PLUGIN_SOURCES ${LOCALE_FILES} "data/gradient.effect" )
193196 endif ()
194197endif ()
195198
You can’t perform that action at this time.
0 commit comments