• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 The Amber Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18LOCAL_MODULE:=amber
19LOCAL_CXXFLAGS:=-std=c++11 -fno-exceptions -fno-rtti \
20    -Wno-unknown-pragmas \
21    -DAMBER_ENABLE_SPIRV_TOOLS=1 \
22    -DAMBER_ENABLE_SHADERC=1 \
23    -DAMBER_ENGINE_VULKAN=1
24LOCAL_SRC_FILES:= \
25    src/amber.cc \
26    src/amberscript/parser.cc \
27    src/buffer.cc \
28    src/command.cc \
29    src/command_data.cc \
30    src/debug.cc \
31    src/descriptor_set_and_binding_parser.cc \
32    src/engine.cc \
33    src/executor.cc \
34    src/float16_helper.cc \
35    src/format.cc \
36    src/parser.cc \
37    src/pipeline.cc \
38    src/pipeline_data.cc \
39    src/recipe.cc \
40    src/result.cc \
41    src/sampler.cc \
42    src/script.cc \
43    src/shader.cc \
44    src/shader_compiler.cc \
45    src/tokenizer.cc \
46    src/type.cc \
47    src/type_parser.cc \
48    src/value.cc \
49    src/verifier.cc \
50    src/virtual_file_store.cc \
51    src/vkscript/command_parser.cc \
52    src/vkscript/datum_type_parser.cc \
53    src/vkscript/parser.cc \
54    src/vkscript/section_parser.cc \
55    src/vulkan/buffer_descriptor.cc \
56    src/vulkan/buffer_backed_descriptor.cc \
57    src/vulkan/command_buffer.cc \
58    src/vulkan/command_pool.cc \
59    src/vulkan/compute_pipeline.cc \
60    src/vulkan/descriptor.cc \
61    src/vulkan/device.cc \
62    src/vulkan/engine_vulkan.cc \
63    src/vulkan/engine_vulkan_debugger.cc \
64    src/vulkan/frame_buffer.cc \
65    src/vulkan/graphics_pipeline.cc \
66    src/vulkan/image_descriptor.cc \
67    src/vulkan/index_buffer.cc \
68    src/vulkan/pipeline.cc \
69    src/vulkan/push_constant.cc \
70    src/vulkan/resource.cc \
71    src/vulkan/sampler.cc \
72    src/vulkan/sampler_descriptor.cc \
73    src/vulkan/transfer_buffer.cc \
74    src/vulkan/transfer_image.cc \
75    src/vulkan/vertex_buffer.cc \
76    src/vulkan_engine_config.cc
77LOCAL_STATIC_LIBRARIES:=glslang SPIRV-Tools shaderc
78LOCAL_C_INCLUDES:=$(LOCAL_PATH)/include $(LOCAL_PATH)/third_party/vulkan-headers/include
79LOCAL_EXPORT_C_INCLUDES:=$(LOCAL_PATH)/include
80include $(BUILD_STATIC_LIBRARY)
81
82include $(LOCAL_PATH)/third_party/Android.mk
83