• Home
  • Raw
  • Download

Lines Matching +full:cmake +full:- +full:3

7 #     http://www.apache.org/licenses/LICENSE-2.0
22 # import-module function.
41 realpath-portable = $(join $(filter %:,$(subst :,: ,$1)),\
42 $(realpath $(filter-out %:,$(subst :,: ,$1))))
46 PROJECT_OS := $(shell uname -s)
57 $(call realpath-portable,$(dir $(lastword $(MAKEFILE_LIST)))/../..)
79 # Search for cmake.
81 $(call realpath-portable,$(LOCAL_PATH)/../../../../../../prebuilts/cmake)
82 ifeq (,$(CMAKE))
84 CMAKE := $(wildcard $(CMAKE_ROOT)/linux-x86/current/bin/cmake*)
87 CMAKE := \
88 $(wildcard $(CMAKE_ROOT)/darwin-x86_64/current/*.app/Contents/bin/cmake)
91 CMAKE := $(wildcard $(CMAKE_ROOT)/windows/current/bin/cmake*)
94 ifeq (,$(CMAKE))
95 CMAKE := cmake
99 # GNU-make doesn't like : in paths, must use relative paths on Windows.
110 $(CMAKE) $(FLATBUFFERS_CMAKELISTS_DIR)
116 $(CMAKE) . && \
122 cd $(FLATBUFFERS_CMAKELISTS_DIR) && "$(CMAKE)" -GXcode . && \
123 xcodebuild -target flatc
156 $(subst $(1),$(2),$(patsubst %.fbs,%_generated.h,$(3)))
173 $(call flatbuffers_fbs_to_h,$(2),$(3),$(1)): $(1) $(flatc_target)
174 $(call host-echo-build-step,generic,Generate) \
175 $(subst $(LOCAL_PATH)/,,$(call flatbuffers_fbs_to_h,$(2),$(3),$(1)))
177 $(foreach include,$(4),-I $(include)) -o $$(dir $$@) -c $$<)
181 # Override the default behavior of local-source-file-path to workaround
184 local-source-file-path=\
185 $(if $(call host-path-is-absolute,$1),$1,$(call \
186 realpath-portable,$(LOCAL_PATH)/$1))
194 # $(3) output_dir: Where to place the generated files.
211 # NOTE: Due problesm with path processing in ndk-build when presented with
215 # LOCAL_PATH := $(call realpath-portable,$(LOCAL_PATH))
220 $(schema),$(strip $(2)),$(strip $(3)),$(strip $(4))))\
222 $(eval $(call local-source-file-path,$(src)): \
224 $(call flatbuffers_fbs_to_h,$(strip $(2)),$(strip $(3)),$(schema)))))\
228 $(call flatbuffers_fbs_to_h,$(strip $(2)),$(strip $(3)),$(schema)))),)\
231 $(eval $(call local-source-file-path,$(src)): $(strip $(7)))),)\