@@ -262,11 +262,22 @@ if host_machine.system() == 'linux'
262
262
subdir : ' openframeworks'
263
263
)
264
264
265
+ elif host_machine .system() == ' darwin'
266
+
267
+ deps += [dependency (' appleframeworks' , modules : [' Cocoa' , ' AppKit' , ' Foundation' , ' AVKit' , ' GLKit' ])]
268
+ add_project_arguments (' -ObjC++' , language : ' cpp' )
269
+
270
+ sources += files (
271
+ ' libs/openFrameworks/sound/ofAVEngineSoundPlayer.mm'
272
+ ' libs/openFrameworks/video/ofAVFoundationGrabber.mm'
273
+ ' libs/openFrameworks/video/ofAVFoundationPlayer.mm'
274
+ )
275
+
265
276
endif
266
277
267
- # We need to treat this dependency independently
278
+ # We need to treat this dependency independently
268
279
# because if it's not installed in the host system,
269
- # we will use the .wrap file in the subprojects file AND
280
+ # we will use the .wrap file in the subprojects file AND
270
281
# need to change a define in the cmake subproject
271
282
uriparser_dep = dependency (' uriparser' , required : false )
272
283
if not uriparser_dep.found()
@@ -298,7 +309,7 @@ freeimage_dep = compiler.find_library('freeimage', has_headers: ['FreeImage.h'],
298
309
if not freeimage_dep.found()
299
310
freeimage_opts = cmake.subproject_options()
300
311
# doesn't compile with the define bellow
301
- # freeimage_opts.add_cmake_defines({'BUILD_SHARED_LIBS': true})
312
+ # freeimage_opts.add_cmake_defines({'BUILD_SHARED_LIBS': true})
302
313
# We need -fPIC to link against the produced static library
303
314
freeimage_opts.add_cmake_defines({' CMAKE_POSITION_INDEPENDENT_CODE' : true })
304
315
freeimage_proj = cmake.subproject (' freeimage' , options : freeimage_opts)
@@ -311,7 +322,8 @@ lib = library('openFrameworks',
311
322
sources,
312
323
include_directories : inc,
313
324
dependencies : deps,
314
- install : true )
325
+ install : true ,
326
+ )
315
327
316
328
openframeworks_dep = declare_dependency (link_with : lib, include_directories : inc, dependencies : deps)
317
329
0 commit comments