Skip to content

Commit c6e54c7

Browse files
committed
fix bundles again
1 parent 6b8ff66 commit c6e54c7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

CMakeLists.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ if(NOT DISABLE_X86_SIMD)
156156
endif()
157157
endif()
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+
159168
add_library(waveform MODULE ${PLUGIN_SOURCES})
160169
target_include_directories(waveform PRIVATE ${LIBOBS_INCLUDE_DIRS} ${FFTW_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}/include)
161170
target_link_libraries(waveform PRIVATE ${LIBOBS_LIBRARIES} ${FFTW_LIBRARIES})
@@ -169,9 +178,6 @@ else()
169178
target_compile_options(waveform PRIVATE "-Wall" "-Wextra")
170179
endif()
171180

172-
# collect all the locale files to install
173-
file(GLOB LOCALE_FILES "data/locale/*.ini")
174-
175181
# OSX bundles
176182
if(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()
194197
endif()
195198

0 commit comments

Comments
 (0)