Skip to content

Commit

Permalink
Fix duplicate copy file rules
Browse files Browse the repository at this point in the history
If these libraries are built, both BUILD_COPY_FILES and
BUILD_SHARED_LIBRARY would copy the headers. This would create a warning
because multiple rules would define the same target header file.

Bug: 27302058
Change-Id: If91bd70d2320aaaee9679642ff9ea48b99739cbd
(cherry picked from commit b360857)
  • Loading branch information
danw authored and micky387 committed Apr 17, 2018
1 parent a79fb63 commit 5cd994c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcopybit/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

LOCAL_PATH:= $(call my-dir)
include $(LOCAL_PATH)/../common.mk
include $(CLEAR_VARS)

include $(CLEAR_VARS)
LOCAL_COPY_HEADERS_TO := $(common_header_export_path)
LOCAL_COPY_HEADERS := copybit.h copybit_priv.h
#Copy the headers regardless of whether copybit is built
include $(BUILD_COPY_HEADERS)

include $(CLEAR_VARS)
LOCAL_MODULE := copybit.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_PROPRIETARY_MODULE := true
Expand Down

0 comments on commit 5cd994c

Please sign in to comment.