LinkTarget.mk (7de6b1b1) LinkTarget.mk (390c74e1)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 528 unchanged lines hidden (view full) ---

537$(call gb_LinkTarget_get_external_headers_target,$(1)) :| \
538 $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag)
539$(call gb_LinkTarget_get_headers_target,$(1)) \
540$(call gb_LinkTarget_get_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc)
541ifeq ($(gb_FULLDEPS),$(true))
542$(call gb_LinkTarget_get_dep_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc)
543endif
544
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 528 unchanged lines hidden (view full) ---

537$(call gb_LinkTarget_get_external_headers_target,$(1)) :| \
538 $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag)
539$(call gb_LinkTarget_get_headers_target,$(1)) \
540$(call gb_LinkTarget_get_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc)
541ifeq ($(gb_FULLDEPS),$(true))
542$(call gb_LinkTarget_get_dep_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc)
543endif
544
545$(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag): $(2)
545$(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag): $(2) $(3)
546 $(call gb_Output_announce,$@,$(true),PVTIDL,2)
547 -$$(call gb_Helper_abbreviate_dirs,\
548 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/urd) && \
549 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/rdb) && \
550 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc) && \
551 $$(gb_UnoApiTarget_IDLCCOMMAND) -I$$(OUTDIR)/idl -O $$(call gb_UnoPrivateApiTarget_get_target,$(1)/urd) \
546 $(call gb_Output_announce,$@,$(true),PVTIDL,2)
547 -$$(call gb_Helper_abbreviate_dirs,\
548 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/urd) && \
549 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/rdb) && \
550 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc) && \
551 $$(gb_UnoApiTarget_IDLCCOMMAND) -I$$(OUTDIR)/idl -O $$(call gb_UnoPrivateApiTarget_get_target,$(1)/urd) \
552 -verbose -cid -we $(2) && \
552 -verbose -cid -we $(3) && \
553 $$(gb_UnoApiTarget_REGMERGECOMMAND) $$(call gb_UnoPrivateApiTarget_get_target,$(1)/rdb/registry.rdb) /UCR \
553 $$(gb_UnoApiTarget_REGMERGECOMMAND) $$(call gb_UnoPrivateApiTarget_get_target,$(1)/rdb/registry.rdb) /UCR \
554 $(patsubst %.idl,%.urd,$$(call gb_UnoPrivateApiTarget_get_target,$(1)/urd)/$(notdir $(2))) && \
554 $(patsubst %.idl,%.urd,$$(call gb_UnoPrivateApiTarget_get_target,$(1)/urd)/$(notdir $(3))) && \
555 $(gb_UnoApiTarget_CPPUMAKERCOMMAND) \
556 -O $$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc) \
555 $(gb_UnoApiTarget_CPPUMAKERCOMMAND) \
556 -O $$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc) \
557 $(foreach unotype,$(4),-T$(unotype)) \
557 -BUCR \
558 -C \
559 $$(call gb_UnoPrivateApiTarget_get_target,$(1)/rdb/registry.rdb) \
558 -BUCR \
559 -C \
560 $$(call gb_UnoPrivateApiTarget_get_target,$(1)/rdb/registry.rdb) \
560 $$(OUTDIR)/bin/udkapi.rdb && \
561 $(2) && \
561 touch $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag))
562
563$(call gb_LinkTarget_get_clean_target,$(1)) :
564 rm -rf $(call gb_UnoPrivateApiTarget_get_target,$(1))
565
566endef
567
568# FIXME: multiple??
569define gb_LinkTarget_set_private_api
562 touch $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag))
563
564$(call gb_LinkTarget_get_clean_target,$(1)) :
565 rm -rf $(call gb_UnoPrivateApiTarget_get_target,$(1))
566
567endef
568
569# FIXME: multiple??
570define gb_LinkTarget_set_private_api
570$(foreach api,$(2),$(call gb_LinkTarget_add_private_api,$(1),$(api)))
571$(foreach api,$(3),$(call gb_LinkTarget_add_private_api,$(1),$(2),$(api),$(4)))
571
572endef
573
574define gb_LinkTarget_set_private_extract_of_public_api
575$(call gb_LinkTarget_get_external_headers_target,$(1)) :| \
572
573endef
574
575define gb_LinkTarget_set_private_extract_of_public_api
576$(call gb_LinkTarget_get_external_headers_target,$(1)) :| \
576 $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag)
577 $(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/idl.cppumaker.flag)
577$(call gb_LinkTarget_get_headers_target,$(1)) \
578$(call gb_LinkTarget_get_headers_target,$(1)) \
578$(call gb_LinkTarget_get_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc)
579$(call gb_LinkTarget_get_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/inc)
579ifeq ($(gb_FULLDEPS),$(true))
580ifeq ($(gb_FULLDEPS),$(true))
580$(call gb_LinkTarget_get_dep_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc)
581$(call gb_LinkTarget_get_dep_target,$(1)) : INCLUDE += -I$(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/inc)
581endif
582
582endif
583
583$(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag): $(2)
584$(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/idl.cppumaker.flag): $(2)
584 $(call gb_Output_announce,$@,$(true),PVTUNOTYPES,2)
585 -$$(call gb_Helper_abbreviate_dirs_native,\
585 $(call gb_Output_announce,$@,$(true),PVTUNOTYPES,2)
586 -$$(call gb_Helper_abbreviate_dirs_native,\
586 mkdir -p $$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc) && \
587 mkdir -p $$(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/inc) && \
587 $(gb_UnoApiTarget_CPPUMAKERCOMMAND) \
588 $(gb_UnoApiTarget_CPPUMAKERCOMMAND) \
588 -O $$(call gb_UnoPrivateApiTarget_get_target,$(1)/inc) \
589 -O $$(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/inc) \
589 $(foreach unotype,$(3),-T$(unotype)) \
590 -BUCR \
591 -C \
590 $(foreach unotype,$(3),-T$(unotype)) \
591 -BUCR \
592 -C \
592 $$(OUTDIR)/bin/udkapi.rdb && \
593 touch $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag))
593 $(2) && \
594 touch $(call gb_UnoPrivateApiExtractTarget_get_target,$(1)/idl.cppumaker.flag))
594
595$(call gb_LinkTarget_get_clean_target,$(1)) :
595
596$(call gb_LinkTarget_get_clean_target,$(1)) :
596 rm -rf $(call gb_UnoPrivateApiTarget_get_target,$(1))
597 rm -rf $(call gb_UnoPrivateApiExtractTarget_get_target,$(1))
597
598
599endef
600
601gb_BisonTarget_get_source = $(SRCDIR)/$(1).y
602
603# Bison-generated .cxx files are always #include'd into in-module files,
604# and aren't compiled, so they effectively act as generated headers, not generated .cxx.

--- 266 unchanged lines hidden ---
598
599
600endef
601
602gb_BisonTarget_get_source = $(SRCDIR)/$(1).y
603
604# Bison-generated .cxx files are always #include'd into in-module files,
605# and aren't compiled, so they effectively act as generated headers, not generated .cxx.

--- 266 unchanged lines hidden ---