Kaydet (Commit) 147b7f0d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Adapt idlc/test/parser/ to gbuild

Change-Id: If57ab37dd4d062e3f6bbf5b75a0cde2524b635bd
üst 4ceba059
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CustomTarget_CustomTarget,idlc/parser_test))
# this target is phony to run it every time
.PHONY : $(call gb_CustomTarget_get_target,idlc/parser_test)
$(call gb_CustomTarget_get_target,idlc/parser_test) : \
$(call gb_Executable_get_runtime_dependencies,idlc) \
$(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/attribute.tests \
$(SRCDIR)/idlc/test/parser/constant.tests \
$(SRCDIR)/idlc/test/parser/constructor.tests \
$(SRCDIR)/idlc/test/parser/interfaceinheritance.tests \
$(SRCDIR)/idlc/test/parser/methodoverload.tests \
$(SRCDIR)/idlc/test/parser/polystruct.tests \
$(SRCDIR)/idlc/test/parser/published.tests \
$(SRCDIR)/idlc/test/parser/struct.tests \
$(SRCDIR)/idlc/test/parser/typedef.tests
$(call gb_Helper_abbreviate_dirs, \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/attribute.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/constant.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/constructor.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/interfaceinheritance.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/methodoverload.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/polystruct.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/published.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/struct.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin && \
$(PERL) $(SRCDIR)/solenv/bin/exectest.pl \
$(SRCDIR)/idlc/test/parser/typedef.tests \
$(call gb_Executable_get_command,idlc) \
-O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \
-stdin)
# vim: set noet sw=4 ts=4:
...@@ -11,6 +11,7 @@ $(eval $(call gb_Module_Module,idlc)) ...@@ -11,6 +11,7 @@ $(eval $(call gb_Module_Module,idlc))
ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,idlc,Executable_idlc)) $(eval $(call gb_Module_add_targets,idlc,Executable_idlc))
$(eval $(call gb_Module_add_check_targets,idlc,CustomTarget_parser_test))
endif endif
# vim:set shiftwidth=4 softtabstop=4 expandtab: # vim:set shiftwidth=4 softtabstop=4 expandtab:
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ := ..$/..
PRJNAME := idlc
TARGET := test_parser
.INCLUDE: settings.mk
.INCLUDE: target.mk
ALLTAR: test
test .PHONY:
$(EXECTEST) attribute.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) constant.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) constructor.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) interfaceinheritance.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) methodoverload.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) polystruct.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) published.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) struct.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
$(EXECTEST) typedef.tests $(BIN)/idlc$(EXECPOST) \
-O $(MISC)/$(TARGET) -stdin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment