Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
build
Commits
615d66e2
Commit
615d66e2
authored
9 years ago
by
Colin Cross
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Make export_includes a restat rule"
parents
bff3c9b4
6b9bddde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
core/binary.mk
core/binary.mk
+19
-3
No files found.
core/binary.mk
View file @
615d66e2
...
...
@@ -1134,7 +1134,11 @@ endif
# that custom build rules which generate .o files don't consume other generated
# sources as input (or if they do they take care of that dependency themselves).
$(normal_objects)
:
| $(my_generated_sources)
ifeq
($(BUILDING_WITH_NINJA),true)
$(all_objects)
:
$(import_includes)
else
$(all_objects)
:
| $(import_includes)
endif
ALL_C_CPP_ETC_OBJECTS
+=
$(all_objects)
...
...
@@ -1307,14 +1311,26 @@ $(export_includes): PRIVATE_EXPORT_C_INCLUDE_DIRS := $(my_export_c_include_dirs)
# generated after the headers, so this is a convenient way to ensure the headers exist.
$(export_includes)
:
$(LOCAL_MODULE_MAKEFILE_DEP) $(proto_generated_headers) $(dbus_generated_headers) $(aidl_gen_cpp)
@
echo
Export includes file:
$<
--
$@
$(hide)
mkdir
-p
$(
dir
$@
)
&&
rm
-f
$@
$(hide)
mkdir
-p
$(
dir
$@
)
&&
rm
-f
$@
.tmp
ifdef
my_export_c_include_dirs
$(hide)
for
d
in
$(PRIVATE_EXPORT_C_INCLUDE_DIRS)
;
do
\
echo
"-I
$$
d"
>>
$@
;
\
echo
"-I
$$
d"
>>
$@
.tmp
;
\
done
else
$(hide)
touch
$@
$(hide)
touch
$@
.tmp
endif
ifeq
($(BUILDING_WITH_NINJA),true)
$(hide)
if
cmp
-s
$@
.tmp
$@
;
then
\
rm
$@
.tmp
;
\
else
\
mv
$@
.tmp
$@
;
\
fi
else
mv
$@
.tmp
$@
;
endif
# Kati adds restat=1 to ninja. GNU make does nothing for this.
.KATI_RESTAT
:
$(export_includes)
# Make sure export_includes gets generated when you are running mm/mmm
$(LOCAL_BUILT_MODULE)
:
| $(export_includes)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment