diff options
author | Fabien Sanglard <sanglardf@google.com> | 2017-04-12 10:46:51 -0700 |
---|---|---|
committer | Fabien Sanglard <sanglardf@google.com> | 2017-04-13 23:35:15 +0000 |
commit | e3b0f1946f428991922ccd2a42eed7656a3b3a4d (patch) | |
tree | de514f2f78e9fa1d18783da4b991ce9108ed5560 | |
parent | 727ecf10b5c219bf14c82bd1e58d856861f0cb86 (diff) | |
download | vulkan-validation-layers-e3b0f1946f428991922ccd2a42eed7656a3b3a4d.tar.gz |
Convert vkjson to blueprintoreo-dr1-dev
Test: Manual + AUPT
Bug: 34095715
Change-Id: Iac0e7cbfb349f72b5c1339683c62e7d97ceca503
-rw-r--r-- | Android.bp | 27 | ||||
-rw-r--r-- | Android.mk | 3 | ||||
-rw-r--r-- | libs/cjson/Android.bp | 28 | ||||
-rw-r--r-- | libs/cjson/cJSON.c (renamed from loader/cJSON.c) | 0 | ||||
-rw-r--r-- | libs/cjson/includes/cJSON.h (renamed from loader/cJSON.h) | 0 | ||||
-rw-r--r-- | libs/vkjson/Android.bp | 45 | ||||
-rw-r--r-- | libs/vkjson/Android.mk | 60 | ||||
-rw-r--r-- | loader/CMakeLists.txt | 4 |
8 files changed, 104 insertions, 63 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 000000000..7c2da7992 --- /dev/null +++ b/Android.bp @@ -0,0 +1,27 @@ +cc_library_headers { + name: "vk_headers", + clang: true, + local_include_dirs: [ + "include", + ], + export_include_dirs: [ + "include", + ], +} + +cc_library_headers { + name: "vk_headers_ndk", + clang: true, + local_include_dirs: [ + "include", + ], + export_include_dirs: [ + "include", + ], + sdk_version: "24", +} + +subdirs = [ + "libs/cjson", + "libs/vkjson", +] diff --git a/Android.mk b/Android.mk index 441a0c24d..c9488121b 100644 --- a/Android.mk +++ b/Android.mk @@ -1 +1,2 @@ -include $(call my-dir)/libs/vkjson/Android.mk +# Leave this Android.mk empty, deleting it unmasks +# invalid Android.mks in subdirectories. diff --git a/libs/cjson/Android.bp b/libs/cjson/Android.bp new file mode 100644 index 000000000..b2ad79ded --- /dev/null +++ b/libs/cjson/Android.bp @@ -0,0 +1,28 @@ +cc_library_static { + name: "cjson", + clang: true, + srcs: [ + "cJSON.c", + ], + local_include_dirs: [ + "includes", + ], + export_include_dirs: [ + "includes", + ], +} + +cc_library_static { + name: "cjson_ndk", + clang: true, + srcs: [ + "cJSON.c", + ], + local_include_dirs: [ + "includes", + ], + export_include_dirs: [ + "includes", + ], + sdk_version: "24", +} diff --git a/loader/cJSON.c b/libs/cjson/cJSON.c index e7266c382..e7266c382 100644 --- a/loader/cJSON.c +++ b/libs/cjson/cJSON.c diff --git a/loader/cJSON.h b/libs/cjson/includes/cJSON.h index cab30515e..cab30515e 100644 --- a/loader/cJSON.h +++ b/libs/cjson/includes/cJSON.h diff --git a/libs/vkjson/Android.bp b/libs/vkjson/Android.bp new file mode 100644 index 000000000..63de5c1ef --- /dev/null +++ b/libs/vkjson/Android.bp @@ -0,0 +1,45 @@ +cc_library_static { + name: "libvkjson", + clang: true, + srcs: [ + "vkjson.cc", + "vkjson_instance.cc", + ], + cppflags: [ + "-std=c++11", + "-Wno-sign-compare", + ], + export_include_dirs: [ + ".", + ], + whole_static_libs: [ + "cjson", + ], + header_libs: [ + "vk_headers", + ], +} + +cc_library_static { + name: "libvkjson_ndk", + clang: true, + srcs: [ + "vkjson.cc", + "vkjson_instance.cc", + ], + cppflags: [ + "-std=c++11", + "-Wno-sign-compare", + ], + export_include_dirs: [ + ".", + ], + whole_static_libs: [ + "cjson_ndk", + ], + header_libs: [ + "vk_headers_ndk", + ], + sdk_version: "24", + stl: "libc++_static", +} diff --git a/libs/vkjson/Android.mk b/libs/vkjson/Android.mk deleted file mode 100644 index 61a731da9..000000000 --- a/libs/vkjson/Android.mk +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2016 The Android Open Source Project -# -# 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) - -vkjson_sources := \ - vkjson.cc \ - vkjson_instance.cc \ - ../../loader/cJSON.c - -# Static library for platform use -include $(CLEAR_VARS) - -LOCAL_CPP_EXTENSION := .cc -LOCAL_CLANG := true -LOCAL_CPPFLAGS := -std=c++11 \ - -Wno-sign-compare - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../../include \ - $(LOCAL_PATH)/../../loader - -LOCAL_SRC_FILES := $(vkjson_sources) -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) -LOCAL_MODULE := libvkjson - -include $(BUILD_STATIC_LIBRARY) - -# Static library for NDK use (CTS) -include $(CLEAR_VARS) - -LOCAL_CPP_EXTENSION := .cc -LOCAL_CLANG := true -LOCAL_CPPFLAGS := -std=c++11 \ - -Wno-sign-compare - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../../include \ - $(LOCAL_PATH)/../../loader - -LOCAL_SRC_FILES := $(vkjson_sources) -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) -LOCAL_SDK_VERSION := 24 -LOCAL_NDK_STL_VARIANT := c++_static -LOCAL_MODULE := libvkjson_ndk - -include $(BUILD_STATIC_LIBRARY) - -vkjson_sources := diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index 793dccc89..3b90e8cff 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -27,8 +27,8 @@ set(NORMAL_LOADER_SRCS debug_report.h table_ops.h gpa_helper.h - cJSON.c - cJSON.h + ../libs/cjson/includes/cJSON.h + ../libs/cjson/cJSON.c murmurhash.c murmurhash.h ) |