Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # | |
| 6 # GNU Make based build file. For details on GNU Make see: | |
| 7 # http://www.gnu.org/software/make/manual/make.html | |
| 8 # | |
| 9 # | |
| 10 | |
| 11 | |
| 12 # | |
| 13 # Default configuration | |
| 14 # | |
| 15 # By default we will build a Debug configuration using the GCC newlib toolcahin | |
| 16 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on | |
| 17 # the make command-line or in this file prior to including common.mk. The | |
| 18 # toolchain we use by default will be the first valid one listed | |
| 19 VALID_TOOLCHAINS:=newlib glibc pnacl linux win | |
| 20 | |
| 21 | |
| 22 # | |
| 23 # Get pepper directory for toolchain and includes. | |
| 24 # | |
| 25 # If NACL_SDK_ROOT is not set, then assume it can be found relative to | |
| 26 # to this Makefile. | |
| 27 # | |
| 28 NACL_SDK_ROOT?=$(abspath $(CURDIR)/../..) | |
| 29 include $(NACL_SDK_ROOT)/tools/common.mk | |
| 30 | |
| 31 | |
| 32 # | |
| 33 # Target Name | |
| 34 # | |
| 35 # The base name of the final NEXE, also the name of the NMF file containing | |
|
binji
2013/01/16 22:46:55
nit: s/NEXE/library/
noelallen1
2013/01/16 23:21:10
Done.
| |
| 36 # the mapping between architecture and actual NEXE. | |
| 37 # | |
| 38 TARGET=ppapi_cpp | |
| 39 | |
| 40 # | |
| 41 # List of sources to compile | |
| 42 # | |
| 43 SOURCES:=ppp_entrypoints.cc | |
| 44 SOURCES+=array_output.cc audio.cc audio_config.cc core.cc | |
| 45 SOURCES+=file_io.cc file_ref.cc file_system.cc fullscreen.cc | |
| 46 SOURCES+=graphics_2d.cc graphics_3d.cc graphics_3d_client.cc | |
| 47 SOURCES+=image_data.cc input_event.cc instance.cc instance_handle.cc | |
| 48 SOURCES+=lock.cc message_loop.cc module.cc mouse_cursor.cc mouse_lock.cc | |
| 49 SOURCES+=rect.cc resource.cc | |
| 50 SOURCES+=url_loader.cc url_request_info.cc url_response_info.cc | |
| 51 SOURCES+=var.cc var_array_buffer.cc view.cc websocket.cc | |
| 52 | |
| 53 # Utility sources. | |
| 54 SOURCES+=paint_aggregator.cc paint_manager.cc simple_thread.cc | |
| 55 SOURCES+=websocket_api.cc | |
| 56 | |
| 57 # | |
| 58 # Use the compile macro for each source. | |
| 59 # | |
| 60 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum))) | |
| 61 | |
| 62 # | |
| 63 # Use the link macro for this target on the list of sources. | |
| 64 # | |
| 65 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) | |
| OLD | NEW |