From 8f6510b31f47e7f21a460fefce74842cdb2ba07f Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Sat, 2 Jun 2012 21:54:26 +0200 Subject: np_sdk: separate system and internal headers Change-Id: I4c61dcb40acf12fa0fe4cf4d6c39a8bfd7b7c9b4 --- np_sdk/Module_np_sdk.mk | 6 ++++++ np_sdk/Package_inc.mk | 8 -------- np_sdk/Package_mozilla_inc.mk | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 np_sdk/Package_mozilla_inc.mk (limited to 'np_sdk') diff --git a/np_sdk/Module_np_sdk.mk b/np_sdk/Module_np_sdk.mk index 6a60e3f8c5f7..eabc6f8ad3a5 100644 --- a/np_sdk/Module_np_sdk.mk +++ b/np_sdk/Module_np_sdk.mk @@ -33,6 +33,12 @@ $(eval $(call gb_Module_add_targets,np_sdk,\ Package_inc \ )) +ifeq ($(SYSTEM_MOZILLA_HEADERS),NO) +$(eval $(call gb_Module_add_targets,np_sdk,\ + Package_mozilla_inc \ +)) +endif + ifeq ($(ENABLE_NSPLUGIN),YES) $(eval $(call gb_Module_add_targets,np_sdk,\ StaticLibrary_nputils \ diff --git a/np_sdk/Package_inc.mk b/np_sdk/Package_inc.mk index 26dc5371aee4..841b1bd33b4e 100644 --- a/np_sdk/Package_inc.mk +++ b/np_sdk/Package_inc.mk @@ -32,12 +32,4 @@ $(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/jri_md.h,mozsrc/jri_md.h) $(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/jritypes.h,mozsrc/jritypes.h)) $(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/npupp.h,mozsrc/npupp.h)) -ifeq ($(SYSTEM_MOZILLA_HEADERS),NO) -$(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/npapi.h,inc/npapi.h)) -$(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/npfunctions.h,inc/npfunctions.h)) -$(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/npruntime.h,inc/npruntime.h)) -$(eval $(call gb_Package_add_file,np_sdk_inc,inc/npsdk/nptypes.h,inc/nptypes.h)) - -endif - # vim: set noet sw=4 ts=4: diff --git a/np_sdk/Package_mozilla_inc.mk b/np_sdk/Package_mozilla_inc.mk new file mode 100644 index 000000000000..20b94f13de03 --- /dev/null +++ b/np_sdk/Package_mozilla_inc.mk @@ -0,0 +1,35 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2012 Matúš Kukan (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Package_Package,mozilla_inc,$(SRCDIR)/np_sdk)) + +$(eval $(call gb_Package_add_file,mozilla_inc,inc/external/npsdk/npapi.h,inc/npapi.h)) +$(eval $(call gb_Package_add_file,mozilla_inc,inc/external/npsdk/npfunctions.h,inc/npfunctions.h)) +$(eval $(call gb_Package_add_file,mozilla_inc,inc/external/npsdk/npruntime.h,inc/npruntime.h)) +$(eval $(call gb_Package_add_file,mozilla_inc,inc/external/npsdk/nptypes.h,inc/nptypes.h)) + +# vim: set noet sw=4 ts=4: -- cgit v1.2.3