• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19gpt_utils_common_cflags := -Wall -Werror
20
21include $(CLEAR_VARS)
22LOCAL_SRC_FILES := gpt-utils.cpp
23ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
24LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
25LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
26endif
27LOCAL_SHARED_LIBRARIES := liblog libz
28LOCAL_MODULE := libgptutils
29LOCAL_MODULE_OWNER := qti
30LOCAL_CFLAGS := $(gpt_utils_common_cflags)
31include $(BUILD_STATIC_LIBRARY)
32
33include $(CLEAR_VARS)
34LOCAL_SRC_FILES := gpt-utils.cpp
35ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
36LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
37LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
38endif
39LOCAL_SHARED_LIBRARIES += liblog libcutils libz
40LOCAL_MODULE := libgptutils
41LOCAL_PROPRIETARY_MODULE := true
42
43LOCAL_MODULE_OWNER := qti
44LOCAL_COPY_HEADERS_TO := gpt-utils/inc
45LOCAL_COPY_HEADERS := gpt-utils.h
46LOCAL_CFLAGS := $(gpt_utils_common_cflags)
47include $(BUILD_SHARED_LIBRARY)
48