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