mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Delete test for CDT 2.x functionality
Rather than update this test, simply delete this test of ancient functionality Part of #117
This commit is contained in:
parent
71eae6c2d3
commit
021c03633a
58 changed files with 0 additions and 3890 deletions
|
@ -1,70 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := test12
|
||||
BUILD_ARTIFACT_EXTENSION := exe
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: test12.exe
|
||||
|
||||
# Tool invocations
|
||||
test12.exe: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: Cygwin C++ Linker'
|
||||
g++ -o "test12.exe" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) test12.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C++_SRCS :=
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
O_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C++_DEPS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
EXECUTABLES :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../test.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./test.d
|
||||
|
||||
OBJS += \
|
||||
./test.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.cpp subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cygwin C++ Compiler'
|
||||
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./test.d ./test.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
|
@ -1,70 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := test20
|
||||
BUILD_ARTIFACT_EXTENSION := exe
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: test20.exe
|
||||
|
||||
# Tool invocations
|
||||
test20.exe: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: Cygwin C++ Linker'
|
||||
g++ -o "test20.exe" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) test20.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C++_SRCS :=
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
O_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C++_DEPS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
EXECUTABLES :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../Test1.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./Test1.d
|
||||
|
||||
OBJS += \
|
||||
./Test1.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.cpp subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cygwin C++ Compiler'
|
||||
g++ -O2 -g1 -pedantic -pedantic-errors -Wall -Werror -c -fmessage-length=0 -v -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./Test1.d ./Test1.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
|
@ -1,31 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../Functions/Func1.c
|
||||
|
||||
C_DEPS += \
|
||||
./Functions/Func1.d
|
||||
|
||||
OBJS += \
|
||||
./Functions/Func1.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Functions/%.o: ../Functions/%.c Functions/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C Compiler'
|
||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean-Functions
|
||||
|
||||
clean-Functions:
|
||||
-$(RM) ./Functions/Func1.d ./Functions/Func1.o
|
||||
|
||||
.PHONY: clean-Functions
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include Functions/subdir.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := MBS2dot1
|
||||
BUILD_ARTIFACT_EXTENSION := exe
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: MBS2dot1.exe
|
||||
|
||||
# Tool invocations
|
||||
MBS2dot1.exe: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: GCC C Linker'
|
||||
gcc -o "MBS2dot1.exe" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) MBS2dot1.exe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
O_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C_DEPS :=
|
||||
EXECUTABLES :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
Functions \
|
||||
. \
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../main.c
|
||||
|
||||
C_DEPS += \
|
||||
./main.d
|
||||
|
||||
OBJS += \
|
||||
./main.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C Compiler'
|
||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./main.d ./main.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
|
@ -1,31 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../Functions/Func1.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./Functions/Func1.d
|
||||
|
||||
OBJS += \
|
||||
./Functions/Func1.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Functions/%.o: ../Functions/%.cpp Functions/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean-Functions
|
||||
|
||||
clean-Functions:
|
||||
-$(RM) ./Functions/Func1.d ./Functions/Func1.o
|
||||
|
||||
.PHONY: clean-Functions
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include Functions/subdir.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := Test21CXX
|
||||
BUILD_ARTIFACT_EXTENSION :=
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: Test21CXX
|
||||
|
||||
# Tool invocations
|
||||
Test21CXX: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: GCC C++ Linker'
|
||||
g++ -o "Test21CXX" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) Test21CXX
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C++_SRCS :=
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
O_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C++_DEPS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
EXECUTABLES :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
Functions \
|
||||
. \
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../main.c
|
||||
|
||||
C_DEPS += \
|
||||
./main.d
|
||||
|
||||
OBJS += \
|
||||
./main.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./main.d ./main.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
|
@ -1,55 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := linkedFolder
|
||||
BUILD_ARTIFACT_EXTENSION := a
|
||||
BUILD_ARTIFACT_PREFIX := lib
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: liblinkedFolder.a
|
||||
|
||||
# Tool invocations
|
||||
liblinkedFolder.a: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: archiver.gnu'
|
||||
ar -r "liblinkedFolder.a" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) liblinkedFolder.a
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C_SRCS :=
|
||||
O_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C_DEPS :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../f1.c \
|
||||
../f2.c
|
||||
|
||||
C_DEPS += \
|
||||
./f1.d \
|
||||
./f2.d
|
||||
|
||||
OBJS += \
|
||||
./f1.o \
|
||||
./f2.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.c'
|
||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
gcc -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./f1.d ./f1.o ./f2.d ./f2.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include "test_ar.h"
|
||||
|
||||
void f1_ar()
|
||||
{
|
||||
printf ( "Hello from f1_ar.\n" ) ;
|
||||
return ;
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include "test_ar.h"
|
||||
|
||||
void f2_ar()
|
||||
{
|
||||
printf ( "Hello from f2_ar.\n" ) ;
|
||||
return ;
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
void f1_ar() ;
|
||||
void f2_ar() ;
|
|
@ -1,55 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := linkedLib
|
||||
BUILD_ARTIFACT_EXTENSION := a
|
||||
BUILD_ARTIFACT_PREFIX := lib
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: liblinkedLib.a
|
||||
|
||||
# Tool invocations
|
||||
liblinkedLib.a: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: archiver.gnu'
|
||||
ar -r "liblinkedLib.a" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) liblinkedLib.a
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C_SRCS :=
|
||||
O_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C_DEPS :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
C:/Documents\ and\ Settings/ltreggia/CDTMBSTest/f1.c \
|
||||
C:/Documents\ and\ Settings/ltreggia/CDTMBSTest/f2.c
|
||||
|
||||
OBJS += \
|
||||
./f1.o \
|
||||
./f2.o
|
||||
|
||||
C_DEPS += \
|
||||
./f1.d \
|
||||
./f2.d
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
f1.o: C:/Documents\ and\ Settings/agvozdev/CDTMBSTest/f1.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.c'
|
||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
gcc -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
f2.o: C:/Documents\ and\ Settings/agvozdev/CDTMBSTest/f2.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.c'
|
||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
gcc -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./f1.d ./f1.o ./f2.d ./f2.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include "test_ar.h"
|
||||
|
||||
void f1_ar()
|
||||
{
|
||||
printf ( "Hello from f1_ar.\n" ) ;
|
||||
return ;
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include "test_ar.h"
|
||||
|
||||
void f2_ar()
|
||||
{
|
||||
printf ( "Hello from f2_ar.\n" ) ;
|
||||
return ;
|
||||
}
|
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
void f1_ar() ;
|
||||
void f2_ar() ;
|
|
@ -1,70 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include source2/source21/subdir.mk
|
||||
-include source2/subdir.mk
|
||||
-include source1/subdir.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := testResCfg
|
||||
BUILD_ARTIFACT_EXTENSION :=
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: testResCfg
|
||||
|
||||
# Tool invocations
|
||||
testResCfg: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: linker.gnu.cpp'
|
||||
g++ --strip-all -o "testResCfg" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) testResCfg
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../source1/Class1.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./source1/Class1.d
|
||||
|
||||
OBJS += \
|
||||
./source1/Class1.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
source1/%.o: ../source1/%.cpp source1/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.cpp'
|
||||
g++ -I../headers -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
g++ -MM -MG -P -w -I../headers -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean-source1
|
||||
|
||||
clean-source1:
|
||||
-$(RM) ./source1/Class1.d ./source1/Class1.o
|
||||
|
||||
.PHONY: clean-source1
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../source2/source21/Class21.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./source2/source21/Class21.d
|
||||
|
||||
OBJS += \
|
||||
./source2/source21/Class21.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
source2/source21/Class21.o: ../source2/source21/Class21.cpp source2/source21/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.cpp'
|
||||
g++ -DRESSPEC -I../headers -O0 -g3 -Wall -c -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
g++ -MM -MG -P -w -DRESSPEC -I../headers -O0 -g3 -Wall -c "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean-source2-2f-source21
|
||||
|
||||
clean-source2-2f-source21:
|
||||
-$(RM) ./source2/source21/Class21.d ./source2/source21/Class21.o
|
||||
|
||||
.PHONY: clean-source2-2f-source21
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../source2/Class2.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./source2/Class2.d
|
||||
|
||||
OBJS += \
|
||||
./source2/Class2.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
source2/%.o: ../source2/%.cpp source2/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.cpp'
|
||||
g++ -I../headers -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
g++ -MM -MG -P -w -I../headers -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean-source2
|
||||
|
||||
clean-source2:
|
||||
-$(RM) ./source2/Class2.d ./source2/Class2.o
|
||||
|
||||
.PHONY: clean-source2
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
O_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
source1 \
|
||||
source2 \
|
||||
source2/source21 \
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CPP_SRCS += \
|
||||
../main.cpp
|
||||
|
||||
CPP_DEPS += \
|
||||
./main.d
|
||||
|
||||
OBJS += \
|
||||
./main.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.cpp subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.cpp'
|
||||
g++ -I../headers -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
g++ -MM -MG -P -w -I../headers -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./main.d ./main.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
|
@ -1,55 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := testSingleExe
|
||||
BUILD_ARTIFACT_EXTENSION :=
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: testSingleExe
|
||||
|
||||
# Tool invocations
|
||||
testSingleExe: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: linker.gnu.c'
|
||||
gcc -o "testSingleExe" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) testSingleExe
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C_SRCS :=
|
||||
O_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C_DEPS :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../main.c
|
||||
|
||||
C_DEPS += \
|
||||
./main.d
|
||||
|
||||
OBJS += \
|
||||
./main.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.c'
|
||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
gcc -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./main.d ./main.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
|
@ -1,67 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := rm -rf
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := testDoubleSO
|
||||
BUILD_ARTIFACT_EXTENSION := so
|
||||
BUILD_ARTIFACT_PREFIX := lib
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: libtestDoubleSO.so
|
||||
|
||||
# Tool invocations
|
||||
libtestDoubleSO.so: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: linker.gnu.cpp'
|
||||
g++ -shared -o "libtestDoubleSO.so" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) libtestDoubleSO.so
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
|
@ -1,8 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
O_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
OBJS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../so1.c \
|
||||
../so2.c
|
||||
|
||||
C_DEPS += \
|
||||
./so1.d \
|
||||
./so2.d
|
||||
|
||||
OBJS += \
|
||||
./so1.o \
|
||||
./so2.o
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.o: ../%.c subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: compiler.gnu.cpp'
|
||||
g++ -DXXX -O0 -g3 -Wall -c -o "$@" "$<" && \
|
||||
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||
g++ -MM -MG -P -w -DXXX -O0 -g3 -Wall -c "$<" >> '$(@:%.o=%.d)'
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
clean: clean--2e-
|
||||
|
||||
clean--2e-:
|
||||
-$(RM) ./so1.d ./so1.o ./so2.d ./so2.o
|
||||
|
||||
.PHONY: clean--2e-
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -1,332 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2005, 2011 Intel Corporation and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Intel Corporation - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
/**********************************************************************
|
||||
* These tests are for a 2.1 style tool integration. That is, the
|
||||
* tool integration does not use any 3.0 elements or attributes,
|
||||
* including InputType, OutputType, etc.
|
||||
**********************************************************************/
|
||||
|
||||
package org.eclipse.cdt.managedbuilder.core.tests;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileFilter;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
|
||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||
import org.eclipse.cdt.managedbuilder.projectconverter.UpdateManagedProjectManager;
|
||||
import org.eclipse.cdt.managedbuilder.testplugin.CTestPlugin;
|
||||
import org.eclipse.cdt.managedbuilder.testplugin.ManagedBuildTestHelper;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IPathVariableManager;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.IncrementalProjectBuilder;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.OperationCanceledException;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.ui.dialogs.IOverwriteQuery;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ManagedProject21MakefileTests extends TestCase {
|
||||
private IPath resourcesLocation = new Path(
|
||||
CTestPlugin.getFileInPlugin(new Path("resources/test21Projects/")).getAbsolutePath());
|
||||
public static final String MBS_TEMP_DIR = "MBSTemp";
|
||||
|
||||
boolean pathVariableCreated = false;
|
||||
|
||||
public ManagedProject21MakefileTests(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(ManagedProject21MakefileTests.class.getName());
|
||||
|
||||
suite.addTest(new ManagedProject21MakefileTests("testSingleFileExe"));
|
||||
suite.addTest(new ManagedProject21MakefileTests("testTwoFileSO"));
|
||||
suite.addTest(new ManagedProject21MakefileTests("testMultiResConfig"));
|
||||
suite.addTest(new ManagedProject21MakefileTests("testLinkedLib"));
|
||||
// TODO: testLinkedFolder fails intermittently saying that it cannot find
|
||||
// the makefiles to compare. This appears to be a test set issue,
|
||||
// rather than an MBS functionality issue
|
||||
suite.addTest(new ManagedProject21MakefileTests("testLinkedFolder"));
|
||||
|
||||
return suite;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
removePathVariables();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
private IProject[] createProject(String projName, IPath location, String projectTypeId, boolean containsZip) {
|
||||
Path path = new Path("resources/test21Projects/" + projName);
|
||||
File testDir = CTestPlugin.getFileInPlugin(path);
|
||||
if (testDir == null) {
|
||||
fail("Test project directory " + path + " is missing.");
|
||||
return null;
|
||||
}
|
||||
|
||||
ArrayList<IProject> projectList = null;
|
||||
if (containsZip) {
|
||||
File projectZips[] = testDir.listFiles(new FileFilter() {
|
||||
@Override
|
||||
public boolean accept(File pathname) {
|
||||
if (pathname.isDirectory())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
projectList = new ArrayList<>(projectZips.length);
|
||||
for (int i = 0; i < projectZips.length; i++) {
|
||||
try {
|
||||
String projectName = projectZips[i].getName();
|
||||
if (!projectName.endsWith(".zip"))
|
||||
continue;
|
||||
|
||||
projectName = projectName.substring(0, projectName.length() - ".zip".length());
|
||||
if (projectName.length() == 0)
|
||||
continue;
|
||||
IProject project = ManagedBuildTestHelper.createProject(projectName, projectZips[i], location,
|
||||
projectTypeId);
|
||||
if (project != null)
|
||||
projectList.add(project);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
if (projectList.size() == 0) {
|
||||
fail("No projects found in test project directory " + testDir.getName()
|
||||
+ ". The .zip file may be missing or corrupt.");
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
IProject project = ManagedBuildTestHelper.createProject(projName, null, location, projectTypeId);
|
||||
if (project != null)
|
||||
projectList = new ArrayList<>(1);
|
||||
projectList.add(project);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
||||
return projectList.toArray(new IProject[projectList.size()]);
|
||||
}
|
||||
|
||||
private IProject[] createProjects(String projName, IPath location, String projectTypeId, boolean containsZip) {
|
||||
|
||||
// In case the projects need to be updated...
|
||||
IOverwriteQuery queryALL = new IOverwriteQuery() {
|
||||
@Override
|
||||
public String queryOverwrite(String file) {
|
||||
return ALL;
|
||||
}
|
||||
};
|
||||
|
||||
UpdateManagedProjectManager.setBackupFileOverwriteQuery(queryALL);
|
||||
UpdateManagedProjectManager.setUpdateProjectQuery(queryALL);
|
||||
|
||||
IProject projects[] = createProject(projName, location, projectTypeId, containsZip);
|
||||
return projects;
|
||||
}
|
||||
|
||||
private boolean buildProjects(String benchmarkDir, IProject projects[], IPath[] files) {
|
||||
if (projects == null || projects.length == 0)
|
||||
return false;
|
||||
|
||||
boolean succeeded = true;
|
||||
try {
|
||||
for (int i = 0; i < projects.length; i++) {
|
||||
IProject curProject = projects[i];
|
||||
|
||||
IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(curProject);
|
||||
|
||||
//check whether the managed build info is converted
|
||||
boolean isCompatible = UpdateManagedProjectManager.isCompatibleProject(info);
|
||||
assertTrue(isCompatible);
|
||||
|
||||
if (isCompatible) {
|
||||
// Build the project in order to generate the maekfiles
|
||||
try {
|
||||
curProject.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
|
||||
} catch (CoreException e) {
|
||||
fail(e.getStatus().getMessage());
|
||||
} catch (OperationCanceledException e) {
|
||||
fail("the project \"" + curProject.getName() + "\" build was cancelled, exception message: "
|
||||
+ e.getMessage());
|
||||
}
|
||||
|
||||
//compare the generated makefiles to their benchmarks
|
||||
if (files != null && files.length > 0) {
|
||||
if (i == 0) {
|
||||
String configName = info.getDefaultConfiguration().getName();
|
||||
IPath buildDir = Path.fromOSString(configName);
|
||||
// succeeded = ManagedBuildTestHelper.compareBenchmarks(curProject, buildDir, files);
|
||||
IPath benchmarkLocationBase = resourcesLocation.append(benchmarkDir);
|
||||
IPath buildLocation = curProject.getLocation().append(buildDir);
|
||||
succeeded = ManagedBuildTestHelper.compareBenchmarks(curProject, buildLocation, files,
|
||||
benchmarkLocationBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
for (int i = 0; i < projects.length; i++)
|
||||
ManagedBuildTestHelper.removeProject(projects[i].getName());
|
||||
}
|
||||
return succeeded;
|
||||
}
|
||||
|
||||
private void createPathVariable(IPath tmpDir) {
|
||||
IWorkspace workspace = ResourcesPlugin.getWorkspace();
|
||||
workspace = ResourcesPlugin.getWorkspace();
|
||||
IPathVariableManager pathMan = workspace.getPathVariableManager();
|
||||
String name = MBS_TEMP_DIR;
|
||||
try {
|
||||
if (pathMan.validateName(name).isOK() && pathMan.validateValue(tmpDir).isOK()) {
|
||||
pathMan.setValue(name, tmpDir);
|
||||
assertTrue(pathMan.isDefined(name));
|
||||
} else {
|
||||
fail("could not create the path variable " + name);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
fail("could not create the path variable " + name);
|
||||
}
|
||||
}
|
||||
|
||||
private void removePathVariables() throws CoreException {
|
||||
IWorkspace workspace = ResourcesPlugin.getWorkspace();
|
||||
workspace = ResourcesPlugin.getWorkspace();
|
||||
IPathVariableManager pathMan = workspace.getPathVariableManager();
|
||||
pathMan.setValue(MBS_TEMP_DIR, null);
|
||||
}
|
||||
|
||||
private void createFileLink(IProject project, IPath tmpDir, String linkName, String fileName) {
|
||||
IWorkspace workspace = ResourcesPlugin.getWorkspace();
|
||||
String name = MBS_TEMP_DIR;
|
||||
if (!pathVariableCreated) {
|
||||
createPathVariable(tmpDir);
|
||||
pathVariableCreated = true;
|
||||
}
|
||||
|
||||
try {
|
||||
// Now we can create a linked resource relative to the defined path variable:
|
||||
IFile linkF1 = project.getFile(linkName);
|
||||
IPath location = new Path("MBSTemp/" + fileName);
|
||||
if (workspace.validateLinkLocation(linkF1, location).isOK()) {
|
||||
linkF1.createLink(location, IResource.NONE, null);
|
||||
} else {
|
||||
fail("could not create the link to " + name);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
fail("could not create the link to " + name + ": " + e);
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests 2.1 style tool integration for a single file executable
|
||||
*/
|
||||
public void testSingleFileExe() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk") };
|
||||
IProject[] projects = createProjects("singleFileExe", null, null, true);
|
||||
buildProjects("singleFileExe", projects, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests 2.1 style tool integration for a two file SO
|
||||
*/
|
||||
public void testTwoFileSO() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk") };
|
||||
IProject[] projects = createProjects("twoFileSO", null, null, true);
|
||||
buildProjects("twoFileSO", projects, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests 2.1 style tool integration for multiple source files & a resource configuration
|
||||
*/
|
||||
public void testMultiResConfig() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk"), Path.fromOSString("source1/subdir.mk"),
|
||||
Path.fromOSString("source2/subdir.mk"), Path.fromOSString("source2/source21/subdir.mk") };
|
||||
IProject[] projects = createProjects("multiResConfig", null, null, true);
|
||||
buildProjects("multiResConfig", projects, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests 2.1 style tool integration for linked files
|
||||
*/
|
||||
public void testLinkedLib() throws IOException {
|
||||
boolean succeeded = false;
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"),
|
||||
//Path.fromOSString("subdir.mk") // Can't compare this yet since it contains absolute paths!
|
||||
Path.fromOSString("sources.mk") };
|
||||
IPath[] linkedFiles = { Path.fromOSString("f1.c"), Path.fromOSString("f2.c"), Path.fromOSString("test_ar.h") };
|
||||
File srcDirFile = CTestPlugin.getFileInPlugin(new Path("resources/test21Projects/linkedLib/"));
|
||||
IPath srcDir = Path.fromOSString(srcDirFile.toString());
|
||||
IPath tmpRootDir = Path.fromOSString(Files.createTempDirectory("testLinkedLib").toAbsolutePath().toString());
|
||||
IPath tmpSubDir = Path.fromOSString("CDTMBSTest");
|
||||
IPath tmpDir = ManagedBuildTestHelper.copyFilesToTempDir(srcDir, tmpRootDir, tmpSubDir, linkedFiles);
|
||||
try {
|
||||
IProject[] projects = createProjects("linkedLib", null, "cdt.managedbuild.target.testgnu21.lib", true);
|
||||
// There should be only one project. Add our linked files to it.
|
||||
IProject project = projects[0];
|
||||
createFileLink(project, tmpDir, "f1.c", "f1.c");
|
||||
createFileLink(project, tmpDir, "f2link.c", "f2.c");
|
||||
createFileLink(project, tmpDir, "test_ar.h", "test_ar.h");
|
||||
// Build the project
|
||||
succeeded = buildProjects("linkedLib", projects, makefiles);
|
||||
} finally {
|
||||
if (succeeded)
|
||||
ManagedBuildTestHelper.deleteTempDir(tmpRootDir, tmpSubDir, linkedFiles);
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests 2.1 style tool integration for a linked folder
|
||||
*/
|
||||
public void testLinkedFolder() throws IOException {
|
||||
boolean succeeded = false;
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("subdir.mk"),
|
||||
Path.fromOSString("sources.mk") };
|
||||
IPath[] linkedFiles = { Path.fromOSString("f1.c"), Path.fromOSString("f2.c"), Path.fromOSString("test_ar.h"),
|
||||
Path.fromOSString("Benchmarks/makefile"), Path.fromOSString("Benchmarks/subdir.mk"),
|
||||
Path.fromOSString("Benchmarks/sources.mk") };
|
||||
File srcDirFile = CTestPlugin.getFileInPlugin(new Path("resources/test21Projects/linkedFolder/"));
|
||||
IPath srcDir = Path.fromOSString(srcDirFile.toString());
|
||||
IPath tmpSubDir = Path.fromOSString("CDTMBSTest");
|
||||
IPath tmpRootDir = Path.fromOSString(Files.createTempDirectory("testLinkedFolder").toAbsolutePath().toString());
|
||||
IPath tmpDir = ManagedBuildTestHelper.copyFilesToTempDir(srcDir, tmpRootDir, tmpSubDir, linkedFiles);
|
||||
if (!pathVariableCreated) {
|
||||
createPathVariable(tmpDir);
|
||||
pathVariableCreated = true;
|
||||
}
|
||||
IPath location = Path.fromOSString(MBS_TEMP_DIR);
|
||||
IProject[] projects = createProjects("linkedFolder", location, "cdt.managedbuild.target.testgnu21.lib", false);
|
||||
// Build the project
|
||||
succeeded = buildProjects("linkedFolder", projects, makefiles);
|
||||
assertTrue(succeeded);
|
||||
}
|
||||
}
|
|
@ -1,269 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2016 Intel Corporation and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Intel Corporation - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.managedbuilder.core.tests;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileFilter;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
|
||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||
import org.eclipse.cdt.managedbuilder.projectconverter.UpdateManagedProjectManager;
|
||||
import org.eclipse.cdt.managedbuilder.testplugin.CTestPlugin;
|
||||
import org.eclipse.cdt.managedbuilder.testplugin.ManagedBuildTestHelper;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.IncrementalProjectBuilder;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.OperationCanceledException;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.core.runtime.jobs.ISchedulingRule;
|
||||
import org.eclipse.core.runtime.jobs.Job;
|
||||
import org.eclipse.ui.dialogs.IOverwriteQuery;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ManagedProjectUpdateTests extends TestCase {
|
||||
private IPath resourcesLocation = new Path(
|
||||
CTestPlugin.getFileInPlugin(new Path("resources/oldTypeProjects/")).getAbsolutePath());
|
||||
|
||||
public ManagedProjectUpdateTests(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(ManagedProjectUpdateTests.class.getName());
|
||||
|
||||
suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate12_Update"));
|
||||
suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate20_Update"));
|
||||
suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate21_Update"));
|
||||
// suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate12_NoUpdate"));
|
||||
// suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate20_NoUpdate"));
|
||||
// suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate21_NoUpdate"));
|
||||
// TODO: This is affected by the TODO in UpdateManagedProjectManager
|
||||
suite.addTest(new ManagedProjectUpdateTests("testProjectUpdate21CPP_Update"));
|
||||
|
||||
return suite;
|
||||
}
|
||||
|
||||
private File getVersionProjectsDir(String version) {
|
||||
return CTestPlugin.getFileInPlugin(new Path("resources/oldTypeProjects/" + version));
|
||||
}
|
||||
|
||||
private IProject[] createVersionProjects(String version) {
|
||||
File file = getVersionProjectsDir(version);
|
||||
if (file == null) {
|
||||
fail("Test project directory is missing.");
|
||||
return null;
|
||||
}
|
||||
|
||||
File projectZips[] = file.listFiles(new FileFilter() {
|
||||
@Override
|
||||
public boolean accept(File pathname) {
|
||||
if (pathname.isDirectory())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
ArrayList<IProject> projectList = new ArrayList<>(projectZips.length);
|
||||
for (int i = 0; i < projectZips.length; i++) {
|
||||
try {
|
||||
String projectName = projectZips[i].getName();
|
||||
if (!projectName.endsWith(".zip"))
|
||||
continue;
|
||||
|
||||
projectName = projectName.substring(0, projectName.length() - ".zip".length());
|
||||
if (projectName.length() == 0)
|
||||
continue;
|
||||
IProject project = ManagedBuildTestHelper.createProject(projectName, projectZips[i], null, null);
|
||||
if (project != null)
|
||||
projectList.add(project);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
if (projectList.size() == 0) {
|
||||
fail("No projects found in test project directory " + file.getName()
|
||||
+ ". The .zip file may be missing or corrupt.");
|
||||
return null;
|
||||
}
|
||||
return projectList.toArray(new IProject[projectList.size()]);
|
||||
}
|
||||
|
||||
private void doTestProjectUpdate(String version, boolean updateProject, boolean overwriteBackupFiles,
|
||||
IPath[] files) {
|
||||
IOverwriteQuery queryALL = new IOverwriteQuery() {
|
||||
@Override
|
||||
public String queryOverwrite(String file) {
|
||||
return ALL;
|
||||
}
|
||||
};
|
||||
IOverwriteQuery queryNOALL = new IOverwriteQuery() {
|
||||
@Override
|
||||
public String queryOverwrite(String file) {
|
||||
return NO_ALL;
|
||||
}
|
||||
};
|
||||
|
||||
UpdateManagedProjectManager.setBackupFileOverwriteQuery(overwriteBackupFiles ? queryALL : queryNOALL);
|
||||
UpdateManagedProjectManager.setUpdateProjectQuery(updateProject ? queryALL : queryNOALL);
|
||||
|
||||
IProject projects[] = createVersionProjects(version);
|
||||
if (projects == null || projects.length == 0)
|
||||
return;
|
||||
for (int i = 0; i < projects.length; i++) {
|
||||
final IProject curProject = projects[i];
|
||||
|
||||
//the project conversion occures the first time
|
||||
//ManagedBuildManager.getBuildInfo gets called
|
||||
IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(curProject);
|
||||
|
||||
//check whether the managed build info is converted
|
||||
boolean isCompatible = UpdateManagedProjectManager.isCompatibleProject(info);
|
||||
assertTrue(isCompatible);
|
||||
|
||||
if (isCompatible) {
|
||||
//check for correct update
|
||||
if (!updateProject) {
|
||||
//TODO: if the user has chosen not to update the project the .cdtbuild file should not change
|
||||
} else {
|
||||
// Make sure that we have a valid project
|
||||
if (info == null || info.getManagedProject() == null
|
||||
|| info.getManagedProject().isValid() == false) {
|
||||
fail("the project \"" + curProject.getName() + "\" was not properly converted");
|
||||
}
|
||||
}
|
||||
|
||||
//check whether the project builds without errors
|
||||
IWorkspace wsp = ResourcesPlugin.getWorkspace();
|
||||
ISchedulingRule rule = wsp.getRuleFactory().buildRule();
|
||||
Job buildJob = new Job("project build job") { //$NON-NLS-1$
|
||||
@Override
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
try {
|
||||
curProject.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
|
||||
} catch (CoreException e) {
|
||||
fail(e.getStatus().getMessage());
|
||||
} catch (OperationCanceledException e) {
|
||||
fail("the project \"" + curProject.getName() + "\" build was cancelled, exception message: "
|
||||
+ e.getMessage());
|
||||
}
|
||||
return new Status(IStatus.OK, "org.eclipse.cdt.managedbuilder.core.tests", IStatus.OK, "", //$NON-NLS-2$
|
||||
null);
|
||||
}
|
||||
};
|
||||
buildJob.setRule(rule);
|
||||
|
||||
buildJob.schedule();
|
||||
|
||||
try {
|
||||
buildJob.join();
|
||||
} catch (InterruptedException e) {
|
||||
fail("the build job for the project \"" + curProject.getName()
|
||||
+ "\" was interrupted, exception message: " + e.getMessage());
|
||||
}
|
||||
|
||||
IStatus status = buildJob.getResult();
|
||||
if (status.getCode() != IStatus.OK) {
|
||||
fail("the build job for the project \"" + curProject.getName() + "\" failed, status message: "
|
||||
+ status.getMessage());
|
||||
}
|
||||
|
||||
//compare the generated makefiles to their benchmarks
|
||||
if (files != null && files.length > 0) {
|
||||
if (i == 0) {
|
||||
String configName = info.getDefaultConfiguration().getName();
|
||||
IPath benchmarkLocationBase = resourcesLocation.append(version);
|
||||
IPath buildLocation = curProject.getLocation().append(configName);
|
||||
ManagedBuildTestHelper.compareBenchmarks(curProject, buildLocation, files,
|
||||
benchmarkLocationBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < projects.length; i++)
|
||||
ManagedBuildTestHelper.removeProject(projects[i].getName());
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v1.2 update
|
||||
* in case when user chooses to update the project
|
||||
*/
|
||||
public void testProjectUpdate12_Update() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk") };
|
||||
doTestProjectUpdate("1.2", true, true, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v2.0 update
|
||||
* in case when user chooses to update the project
|
||||
*/
|
||||
public void testProjectUpdate20_Update() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk") };
|
||||
doTestProjectUpdate("2.0", true, true, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v2.1 update
|
||||
* in case when user chooses to update the project
|
||||
*/
|
||||
public void testProjectUpdate21_Update() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk"), Path.fromOSString("Functions/subdir.mk") };
|
||||
doTestProjectUpdate("2.1", true, true, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v2.1 update of a C++ project with C source files
|
||||
*/
|
||||
public void testProjectUpdate21CPP_Update() {
|
||||
IPath[] makefiles = { Path.fromOSString("makefile"), Path.fromOSString("sources.mk"),
|
||||
Path.fromOSString("subdir.mk"), Path.fromOSString("Functions/subdir.mk") };
|
||||
doTestProjectUpdate("2.1CPP", true, true, makefiles);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v1.2 update
|
||||
* in case when user chooses not to update the project
|
||||
*/
|
||||
public void testProjectUpdate12_NoUpdate() {
|
||||
doTestProjectUpdate("1.2", false, true, null);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v2.0 update
|
||||
* in case when user chooses not to update the project
|
||||
*/
|
||||
public void testProjectUpdate20_NoUpdate() {
|
||||
doTestProjectUpdate("2.0", false, true, null);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* tests project v2.1 update
|
||||
* in case when user chooses not to update the project
|
||||
*/
|
||||
public void testProjectUpdate21_NoUpdate() {
|
||||
doTestProjectUpdate("2.1", false, true, null);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue