Skip to content

Commit

Permalink
add Makefile.lib.extra
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Sep 9, 2016
1 parent b944ee3 commit c183a20
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions build.macos32x86/common/Makefile.lib.extra
@@ -0,0 +1,29 @@
#
# THIRDPARTYLIBS The libraries to build (you define them in ./third-party/LIB/Makefile.lib)
# THIRDPARTYDIR Where to build libraries
# THIRDPARTYOUTDIR Where to first install libraries (output place)
#
# REQUIRES:
# USEPLUGINASDYLIB Used to define where to place built libraries (default is FALSE (or absent)).
#

THIRDPARTYDIR?=$(BLDDIR)/third-party
THIRDPARTYOUTDIR?=$(abspath $(THIRDPARTYDIR)/out)
THIRDPARTYLIBDIR?=$(THIRDPARTYOUTDIR)/lib
THIRDPARTYINCLUDEDIR?=$(THIRDPARTYOUTDIR)/include

ifeq ($(USEPLUGINASDYLIB),TRUE)
THIRDPARTYINSTALLDIR:=$(APP)/Contents/MacOS/Plugins
else
THIRDPARTYINSTALLDIR:=$(APP)/Contents/Resources
endif

$(THIRDPARTYDIR):
if [ ! -d $(THIRDPARTYDIR) ]; then mkdir -p $(THIRDPARTYDIR); fi

$(THIRDPARTYOUTDIR): $(THIRDPARTYDIR)
if [ ! -d $(THIRDPARTYOUTDIR) ]; then mkdir -p $(THIRDPARTYOUTDIR); fi

$(THIRDPARTYINSTALLDIR):
if [ ! -d $(THIRDPARTYINSTALLDIR) ]; then mkdir -p $(THIRDPARTYINSTALLDIR); fi

0 comments on commit c183a20

Please sign in to comment.