Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: sdk_build/data/cpp/Makefile

Issue 2232833003: Change the canonical way to include the C bindings headers to <mojo/bindings/*.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_mojo_tests
Patch Set: rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojom/generators/c/templates/source.tmpl.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This is a simplistic sample Makefile for building a Mojo application. It 5 # This is a simplistic sample Makefile for building a Mojo application. It
6 # produces output in the out subdirectory (which it creates if necessary), and 6 # produces output in the out subdirectory (which it creates if necessary), and
7 # produces "debug" builds. It assumes that the mojom tool and clang have been 7 # produces "debug" builds. It assumes that the mojom tool and clang have been
8 # obtained by running mojo_sdk_setup/setup.sh. 8 # obtained by running mojo_sdk_setup/setup.sh.
9 # 9 #
10 # Note: It is very primitive, and doesn't try to correctly handle dependencies. 10 # Note: It is very primitive, and doesn't try to correctly handle dependencies.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 # Target: mojo_public.a -------------------------------------------------------- 78 # Target: mojo_public.a --------------------------------------------------------
79 79
80 MOJO_PUBLIC_MOJOM_FILES := \ 80 MOJO_PUBLIC_MOJOM_FILES := \
81 $(wildcard mojo/public/interfaces/application/*.mojom) \ 81 $(wildcard mojo/public/interfaces/application/*.mojom) \
82 $(wildcard mojo/public/interfaces/bindings/*.mojom) \ 82 $(wildcard mojo/public/interfaces/bindings/*.mojom) \
83 $(wildcard mojo/public/interfaces/network/*.mojom) 83 $(wildcard mojo/public/interfaces/network/*.mojom)
84 MOJO_PUBLIC_MOJOM_CC_FILES := \ 84 MOJO_PUBLIC_MOJOM_CC_FILES := \
85 $(call cc_files_from_mojom_files,$(MOJO_PUBLIC_MOJOM_FILES)) 85 $(call cc_files_from_mojom_files,$(MOJO_PUBLIC_MOJOM_FILES))
86 MOJO_PUBLIC_C_FILES := \ 86 MOJO_PUBLIC_C_FILES := \
87 » » $(wildcard mojo/public/c/bindings/lib/*.c) 87 » » $(wildcard mojo/public/c/lib/bindings/*.c)
88 MOJO_PUBLIC_CC_FILES := \ 88 MOJO_PUBLIC_CC_FILES := \
89 $(wildcard mojo/public/cpp/application/lib/*.cc) \ 89 $(wildcard mojo/public/cpp/application/lib/*.cc) \
90 $(wildcard mojo/public/cpp/bindings/lib/*.cc) \ 90 $(wildcard mojo/public/cpp/bindings/lib/*.cc) \
91 $(wildcard mojo/public/cpp/environment/lib/*.cc) \ 91 $(wildcard mojo/public/cpp/environment/lib/*.cc) \
92 $(wildcard mojo/public/cpp/system/lib/*.cc) \ 92 $(wildcard mojo/public/cpp/system/lib/*.cc) \
93 $(wildcard mojo/public/cpp/utility/lib/*.cc) 93 $(wildcard mojo/public/cpp/utility/lib/*.cc)
94 # We have to choose *one* implementation of |Environment|, so remove the 94 # We have to choose *one* implementation of |Environment|, so remove the
95 # logging-only environment. 95 # logging-only environment.
96 MOJO_PUBLIC_CC_FILES := \ 96 MOJO_PUBLIC_CC_FILES := \
97 $(filter-out mojo/public/cpp/environment/lib/logging_only_enviro nment.cc, \ 97 $(filter-out mojo/public/cpp/environment/lib/logging_only_enviro nment.cc, \
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 $(OBJ_DIR)/mojo_system_thunks.o \ 145 $(OBJ_DIR)/mojo_system_thunks.o \
146 $(call o_files_from_cc_files,$(EXAMPLES_HELLO_MOJO_MOJOM_CC_FILE S)) \ 146 $(call o_files_from_cc_files,$(EXAMPLES_HELLO_MOJO_MOJOM_CC_FILE S)) \
147 $(call o_files_from_cc_files,$(EXAMPLES_HELLO_MOJO_SERVER_CC_FIL ES)) 147 $(call o_files_from_cc_files,$(EXAMPLES_HELLO_MOJO_SERVER_CC_FIL ES))
148 $(CXX) $(CXX_MAKE_SO_FLAGS) \ 148 $(CXX) $(CXX_MAKE_SO_FLAGS) \
149 -Wl,--whole-archive $(filter %.o,$^) -Wl,-no-whole-archi ve \ 149 -Wl,--whole-archive $(filter %.o,$^) -Wl,-no-whole-archi ve \
150 $(filter %.a,$^) -o $@ 150 $(filter %.a,$^) -o $@
151 151
152 # Default targets -------------------------------------------------------------- 152 # Default targets --------------------------------------------------------------
153 153
154 default: $(OUT_DIR)/hello_mojo_client.mojo $(OUT_DIR)/hello_mojo_server.mojo 154 default: $(OUT_DIR)/hello_mojo_client.mojo $(OUT_DIR)/hello_mojo_server.mojo
OLDNEW
« no previous file with comments | « mojom/generators/c/templates/source.tmpl.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698