Home | History | Annotate | Download | only in extra_data
      1 # Copyright 2014 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 # GNU Makefile based on shared rules provided by the Native Client SDK.
      6 # See README.Makefiles for more details.
      7 
      8 VALID_TOOLCHAINS := newlib glibc pnacl linux
      9 
     10 NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../../..)
     11 
     12 include $(NACL_SDK_ROOT)/tools/common.mk
     13 
     14 TARGET = touch_drawing_plugin
     15 LIBS = ppapi_cpp ppapi pthread ppapi_cpp_private
     16 
     17 CFLAGS = -Wall
     18 SOURCES = touch_drawing_plugin.cc
     19 
     20 # Build rules generated by macros from common.mk:
     21 
     22 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
     23 
     24 # The PNaCl workflow uses both an unstripped and finalized/stripped binary.
     25 # On NaCl, only produce a stripped binary for Release configs (not Debug).
     26 ifneq (,$(or $(findstring pnacl,$(TOOLCHAIN)),$(findstring Release,$(CONFIG))))
     27 $(eval $(call LINK_RULE,$(TARGET)_unstripped,$(SOURCES),$(LIBS),$(DEPS)))
     28 $(eval $(call STRIP_RULE,$(TARGET),$(TARGET)_unstripped))
     29 else
     30 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
     31 endif
     32 
     33 $(eval $(call NMF_RULE,$(TARGET),))
     34