diff options
Diffstat (limited to 'macosx/module.defs')
-rw-r--r-- | macosx/module.defs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/module.defs b/macosx/module.defs index 9c7850901..d864b7ff4 100644 --- a/macosx/module.defs +++ b/macosx/module.defs @@ -31,6 +31,14 @@ MACOSX.map.g.max = debug MACOSX.xcconfig = $(foreach x,$(XCODE.xcconfig),-xcconfig $(MACOSX.src/)xcconfig/$(x)) MACOSX.sdk = $(foreach sdk,$(GCC.sysroot),-sdk $(sdk)) +## some optional features use ifdef directives outside of libhb (e.g. CLI) +ifeq (1,$(FEATURE.x265)) + MACOSX.GCC.D += -DUSE_X265 +endif + +## extra CFLAGS: macro definitions +MACOSX.extra_cflags = OTHER_CFLAGS='$(MACOSX.GCC.D)' + ## launch a build thru xcode; which in turn will do a nested make against ## this build system with normal build rules enabled. ## |