forked from openkylin/platform_build
Merge "Switch some build tools to Soong"
am: c52d09e694
* commit 'c52d09e6944e531e02242cf971020cb2c0cf9844':
Switch some build tools to Soong
Change-Id: I4ba945cad1eda7c696cd770243e226a09ff735ac
This commit is contained in:
commit
8a78c90a95
|
@ -0,0 +1,20 @@
|
||||||
|
cc_library_host_static {
|
||||||
|
|
||||||
|
srcs: ["CopyFile.c"],
|
||||||
|
|
||||||
|
cflags: [
|
||||||
|
"-Werror",
|
||||||
|
"-Wall",
|
||||||
|
],
|
||||||
|
|
||||||
|
name: "libhost",
|
||||||
|
target: {
|
||||||
|
windows: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
local_include_dirs: ["include"],
|
||||||
|
export_include_dirs: ["include"],
|
||||||
|
stl: "none",
|
||||||
|
|
||||||
|
}
|
|
@ -1,18 +0,0 @@
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES:= \
|
|
||||||
CopyFile.c
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := -Werror -Wall
|
|
||||||
|
|
||||||
LOCAL_MODULE:= libhost
|
|
||||||
LOCAL_MODULE_HOST_OS := darwin linux windows
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
||||||
LOCAL_CXX_STL := none
|
|
||||||
|
|
||||||
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
||||||
|
|
||||||
# Include toolchain prebuilt modules if they exist.
|
|
||||||
-include $(TARGET_TOOLCHAIN_ROOT)/toolchain.mk
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
// Copyright 2005 The Android Open Source Project
|
||||||
|
//
|
||||||
|
// Custom version of cp.
|
||||||
|
|
||||||
|
cc_binary_host {
|
||||||
|
|
||||||
|
srcs: ["acp.c"],
|
||||||
|
|
||||||
|
static_libs: ["libhost"],
|
||||||
|
name: "acp",
|
||||||
|
stl: "none",
|
||||||
|
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
# Copyright 2005 The Android Open Source Project
|
|
||||||
#
|
|
||||||
# Custom version of cp.
|
|
||||||
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
acp.c
|
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := libhost
|
|
||||||
LOCAL_MODULE := acp
|
|
||||||
LOCAL_CXX_STL := none
|
|
||||||
|
|
||||||
include $(BUILD_HOST_EXECUTABLE)
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright 2015 The Android Open Source Project
|
||||||
|
//
|
||||||
|
// The rest of files in this directory comes from
|
||||||
|
// https://github.com/bazelbuild/bazel/tree/master/third_party/ijar
|
||||||
|
|
||||||
|
cc_binary_host {
|
||||||
|
srcs: [
|
||||||
|
"classfile.cc",
|
||||||
|
"ijar.cc",
|
||||||
|
"zip.cc",
|
||||||
|
],
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
],
|
||||||
|
host_ldlibs: ["-lz"],
|
||||||
|
name: "ijar",
|
||||||
|
// libc++ is not supported for TARGET_BUILD_APPS builds
|
||||||
|
stl: "libstdc++",
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
# Copyright 2015 The Android Open Source Project
|
|
||||||
#
|
|
||||||
# The rest of files in this directory comes from
|
|
||||||
# https://github.com/bazelbuild/bazel/tree/master/third_party/ijar
|
|
||||||
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_CPP_EXTENSION := .cc
|
|
||||||
LOCAL_SRC_FILES := classfile.cc ijar.cc zip.cc
|
|
||||||
LOCAL_CFLAGS += -Wall -Werror
|
|
||||||
LOCAL_SHARED_LIBRARIES := libz-host
|
|
||||||
LOCAL_MODULE := ijar
|
|
||||||
# libc++ is not supported for TARGET_BUILD_APPS builds
|
|
||||||
LOCAL_CXX_STL := libstdc++
|
|
||||||
include $(BUILD_HOST_EXECUTABLE)
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
//
|
||||||
|
// Copyright 2015 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.
|
||||||
|
//
|
||||||
|
|
||||||
|
//
|
||||||
|
// Zip timestamp removal tool
|
||||||
|
//
|
||||||
|
|
||||||
|
cc_binary_host {
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"ZipTime.cpp",
|
||||||
|
"ZipEntry.cpp",
|
||||||
|
"ZipFile.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
name: "ziptime",
|
||||||
|
target: {
|
||||||
|
windows: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
|
@ -1,32 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright 2015 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.
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Zip timestamp removal tool
|
|
||||||
#
|
|
||||||
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
ZipTime.cpp \
|
|
||||||
ZipEntry.cpp \
|
|
||||||
ZipFile.cpp
|
|
||||||
|
|
||||||
LOCAL_MODULE := ziptime
|
|
||||||
LOCAL_MODULE_HOST_OS := darwin linux windows
|
|
||||||
|
|
||||||
include $(BUILD_HOST_EXECUTABLE)
|
|
Loading…
Reference in New Issue