aboutsummaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorErwin Jansen <jansene@google.com>2018-10-25 23:28:54 -0700
committerErwin Jansen <jansene@google.com>2018-10-26 09:01:25 -0700
commitf96db3c016ad5be5532d843758bb6cc7592fb68a (patch)
tree23206b24be6f934c4bf1e8edad407db8e9d4c4f1 /common.mk
parent023b3ca6ac518ef047b3ffbe9714276b293be116 (diff)
downloadgoldfish-opengl-f96db3c016ad5be5532d843758bb6cc7592fb68a.tar.gz
Autogenerate the CMake build
Adds a GNUMakefile that will generate the cmake files based upon the android makefiles. This will make it easier to keep the makefiles in sync. If the makefiles change, we will have to run make in this directory. It relies on the following: - The android.mk files are using the emugl dependency mechanism - You are in the emulator repo (as we need the emulator build.mk files) - We translate the emugl -> json representation. - We write the json representation to disk - We have a python script that transforms the json to cmake It is all driven by GNUmake, so all you have to do is type make to regenerate the files. SOONG does not use GNUMakefiles so we should be able to co-exist. Change-Id: I6f9ae22397bcf9987699b946aa14921b00fc94b0
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index c15812e9..79917126 100644
--- a/common.mk
+++ b/common.mk
@@ -58,7 +58,8 @@ emugl-end-module = \
$(eval include $(_EMUGL_INCLUDE_TYPE))\
$(eval _EMUGL_INCLUDE_TYPE :=) \
$(eval _emugl_$(_emugl_HOST)modules += $(_emugl_MODULE))\
- $(if $(EMUGL_DEBUG),$(call emugl-dump-module))
+ $(if $(EMUGL_DEBUG),$(call emugl-dump-module)) \
+ $(if $(CMAKE_GENERATE), $(call dump-json-module))
# Managing module exports and imports.
#