diff options
author | Colin Cross <ccross@google.com> | 2015-04-09 23:59:47 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-09 23:59:53 +0000 |
commit | 0e48c6c9c7166e5e616aee3592133ff0ced3f094 (patch) | |
tree | 2dd5ef3cef304d83ebf88ddf2091d9fe465b1096 | |
parent | b6b81d6acd6949a731308666ac211864f824ab50 (diff) | |
parent | b69a3455c9f8336878ed1ae636eb984ae87958dc (diff) | |
download | native-0e48c6c9c7166e5e616aee3592133ff0ced3f094.tar.gz |
Merge "Initial blueprints for libbinder and libui" into master-soong
-rw-r--r-- | libs/binder/Blueprints | 61 | ||||
-rw-r--r-- | libs/ui/Blueprints | 81 | ||||
-rw-r--r-- | libs/ui/tests/Blueprints | 31 |
3 files changed, 173 insertions, 0 deletions
diff --git a/libs/binder/Blueprints b/libs/binder/Blueprints new file mode 100644 index 0000000000..8107d92aa1 --- /dev/null +++ b/libs/binder/Blueprints @@ -0,0 +1,61 @@ +// Copyright (C) 2009 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. + +// we have the common sources, plus some device-specific stuff +sources = [ + "AppOpsManager.cpp", + "Binder.cpp", + "BpBinder.cpp", + "BufferedTextOutput.cpp", + "Debug.cpp", + "IAppOpsCallback.cpp", + "IAppOpsService.cpp", + "IBatteryStats.cpp", + "IInterface.cpp", + "IMemory.cpp", + "IPCThreadState.cpp", + "IPermissionController.cpp", + "IServiceManager.cpp", + "MemoryDealer.cpp", + "MemoryBase.cpp", + "MemoryHeapBase.cpp", + "Parcel.cpp", + "PermissionCache.cpp", + "ProcessState.cpp", + "Static.cpp", + "TextOutput.cpp", +] + +cc_library { + name: "libbinder", + cflags: ["-Werror"], + srcs: sources, + shared_libs: [ + "liblog", + "libcutils", + "libutils", + ], + // ANDROIDMK TRANSLATION ERROR: unsupported conditional + // ifneq ($(TARGET_USES_64_BIT_BINDER),true) + // ANDROIDMK TRANSLATION ERROR: unsupported conditional + // ifneq ($(TARGET_IS_64_BIT),true) + multilib: { + lib32: { + cflags: ["-DBINDER_IPC_32BIT=1"] + } + } + // endif + // ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional + // endif +} diff --git a/libs/ui/Blueprints b/libs/ui/Blueprints new file mode 100644 index 0000000000..259d79f625 --- /dev/null +++ b/libs/ui/Blueprints @@ -0,0 +1,81 @@ +// Copyright (C) 2010 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. + +cc_library_shared { + + clang: true, + cppflags: [ + "-std=c++1y", + "-Weverything", + "-Werror", + + // The static constructors and destructors in this library have not + // been noted to introduce significant overheads + "-Wno-exit-time-destructors", + "-Wno-global-constructors", + + // We only care about compiling as C++14 + "-Wno-c++98-compat-pedantic", + + // We use four-character constants for the GraphicBuffer header, and + // don't care that they're non-portable as long as they're consistent + // within one execution + "-Wno-four-char-constants", + + // Don't warn about struct padding + "-Wno-padded", + ], + + srcs: [ + "Fence.cpp", + "FramebufferNativeWindow.cpp", + "FrameStats.cpp", + "GraphicBuffer.cpp", + "GraphicBufferAllocator.cpp", + "GraphicBufferMapper.cpp", + "PixelFormat.cpp", + "Rect.cpp", + "Region.cpp", + "UiConfig.cpp", + ], + + shared_libs: [ + "libcutils", + "libhardware", + "libsync", + "libutils", + "liblog", + ], + + // ANDROIDMK TRANSLATION ERROR: unsupported conditional + // ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),) + //cflags: ["-DFRAMEBUFFER_FORCE_FORMAT=" + BOARD_FRAMEBUFFER_FORCE_FORMAT], + // ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional + // endif + name: "libui", + +} + +// Include subdirectory makefiles +// ============================================================ +subdirs = ["tests"] + +// If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework +// team really wants is to build the stuff defined by this makefile. +// ANDROIDMK TRANSLATION ERROR: unsupported conditional +// ifeq (,$(ONE_SHOT_MAKEFILE)) +// ANDROIDMK TRANSLATION ERROR: unsupported include +// include $(call first-makefiles-under,$(LOCAL_PATH)) +// ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional +// endif diff --git a/libs/ui/tests/Blueprints b/libs/ui/tests/Blueprints new file mode 100644 index 0000000000..8c84e4b454 --- /dev/null +++ b/libs/ui/tests/Blueprints @@ -0,0 +1,31 @@ +// +// Copyright (C) 2014 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. +// + +cc_test { + shared_libs: ["libui"], + srcs: ["Region_test.cpp"], + name: "Region_test", +} + +cc_test { + srcs: ["vec_test.cpp"], + name: "vec_test", +} + +cc_test { + srcs: ["mat_test.cpp"], + name: "mat_test", +} |