Browse Source

PEMA-107 Add PerArchMakefile.conf

This file is meant to hold common variables for *only* architectures' Makefiles.

Organize Makefile.conf.
pull/25/head
ignaciogarcia 3 years ago
parent
commit
5573f86809
No known key found for this signature in database GPG Key ID: 5E6A455C909DD623
  1. 5
      android/external/MakefileTemplate
  2. 9
      android/external/PerArchMakefile.conf

5
android/external/MakefileTemplate

@ -3,6 +3,8 @@
# This file may be used under the terms of the GNU General Public License version 3 # This file may be used under the terms of the GNU General Public License version 3
# see LICENSE.txt # see LICENSE.txt
include ../Makefile.conf
# Build parameters # Build parameters
APP_ABI ?= [ARCH] APP_ABI ?= [ARCH]
HOST ?= [HOST] HOST ?= [HOST]
@ -11,7 +13,8 @@ SEQUOIA_ARCH ?= [SEQUOIA_ARCH]
OPENSSL_ARCHITECTURE ?= [OPENSSL_ARCHITECTURE] OPENSSL_ARCHITECTURE ?= [OPENSSL_ARCHITECTURE]
COMPILER_PREFIX ?= [COMPILER_PREFIX] COMPILER_PREFIX ?= [COMPILER_PREFIX]
include ../Makefile.conf # This include is dependent on the *build parameters* defined above and needs to be declared after them
include ../PerArchMakefile.conf
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Makefile to build deps for use with pEpEngine # Makefile to build deps for use with pEpEngine

9
android/external/PerArchMakefile.conf

@ -0,0 +1,9 @@
# This file holds variables that *should only be accessed from the Makefiles in each architecture*, which are generated from MakefileTemplate.
# install root for built files
EXTERNAL_ROOT = $(shell pwd)
DESTDIR = $(EXTERNAL_ROOT)/..
prefix = /output/$(APP_ABI)
LOCAL = $(DESTDIR)$(prefix)
NDK_TOOLCHAIN = $(NDK_TOOLCHAIN_TARGET)-$(NDK_TOOLCHAIN_COMPILER)
TEMP_WORK_PATH = "$(ANDROID_NDK_HOME)/bin:${PATH}:$(NDK_TOOLCHAIN)/bin:$(LOCAL)/bin"
Loading…
Cancel
Save