mirror of
https://github.com/meekrosoft/fff
synced 2026-01-23 00:15:59 +01:00
Add license file and make gtest compile with own TR1 tuple library
This commit is contained in:
25
LICENSE
Normal file
25
LICENSE
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2010 Michael Long
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
*/
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ruby fakegen.rb > fff.h
|
cat LICENSE > fff.h
|
||||||
|
ruby fakegen.rb >> fff.h
|
||||||
make clean
|
make clean
|
||||||
make all
|
make all
|
||||||
build/fff_test_c
|
build/fff_test_c
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ $(BUILD_DIR)/%.o: %.c
|
|||||||
$(BUILD_DIR)/%.o: %.cpp
|
$(BUILD_DIR)/%.o: %.cpp
|
||||||
@echo "Compiling "$@
|
@echo "Compiling "$@
|
||||||
@echo " CPP "$<
|
@echo " CPP "$<
|
||||||
$(CPP) -I../.. -o $@ $< -DTESTING
|
$(CPP) -DGTEST_USE_OWN_TR1_TUPLE=1 -I../.. -o $@ $< -DTESTING
|
||||||
|
|
||||||
$(TEMPLATE_PROGNAME): $(TEMPLATE_OBJFILES)
|
$(TEMPLATE_PROGNAME): $(TEMPLATE_OBJFILES)
|
||||||
@echo "Linking "$@
|
@echo "Linking "$@
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ $(BUILD_DIR)/%.o: %.c
|
|||||||
$(BUILD_DIR)/%.o: %.cpp
|
$(BUILD_DIR)/%.o: %.cpp
|
||||||
@echo "Compiling "$@
|
@echo "Compiling "$@
|
||||||
@echo " CPP "$<
|
@echo " CPP "$<
|
||||||
$(CPP) -I../.. -o $@ $<
|
$(CPP) -DGTEST_USE_OWN_TR1_TUPLE=1 -I../.. -o $@ $<
|
||||||
|
|
||||||
$(TEMPLATE_PROGNAME): $(TEMPLATE_OBJFILES)
|
$(TEMPLATE_PROGNAME): $(TEMPLATE_OBJFILES)
|
||||||
@echo "Linking "$@
|
@echo "Linking "$@
|
||||||
|
|||||||
26
fff.h
26
fff.h
@@ -1,4 +1,28 @@
|
|||||||
#ifndef FAKE_FUNCTIONS
|
/*
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2010 Michael Long
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
*/#ifndef FAKE_FUNCTIONS
|
||||||
#define FAKE_FUNCTIONS
|
#define FAKE_FUNCTIONS
|
||||||
|
|
||||||
#define FFF_MAX_ARGS (20u)
|
#define FFF_MAX_ARGS (20u)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ SOURCES=gtest-all.cc gtest-main.cc
|
|||||||
$(BUILD_DIR)/%.o: %.cc
|
$(BUILD_DIR)/%.o: %.cc
|
||||||
@echo 'Building file: $<'
|
@echo 'Building file: $<'
|
||||||
@echo 'Invoking: GCC C++ Compiler'
|
@echo 'Invoking: GCC C++ Compiler'
|
||||||
g++ -I../ -O0 -g3 -Wall -c -o "$@" "$<"
|
g++ -I../ -O0 -g3 -Wall -DGTEST_USE_OWN_TR1_TUPLE=1 -c -o "$@" "$<"
|
||||||
@echo 'Finished building: $<'
|
@echo 'Finished building: $<'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ all: $(FFF_TEST_CPP_TARGET) $(FFF_TEST_C_TARGET) $(FFF_TEST_GLOBAL_C_TARGET) $(F
|
|||||||
$(BUILD_DIR)/%.o: %.cpp
|
$(BUILD_DIR)/%.o: %.cpp
|
||||||
@echo 'Building file: $<'
|
@echo 'Building file: $<'
|
||||||
@echo 'Invoking: GCC C++ Compiler'
|
@echo 'Invoking: GCC C++ Compiler'
|
||||||
g++ -I../ -O0 -g3 -Wall -c -o "$@" "$<"
|
g++ -I../ -O0 -g3 -Wall -DGTEST_USE_OWN_TR1_TUPLE=1 -c -o "$@" "$<"
|
||||||
@echo 'Finished building: $<'
|
@echo 'Finished building: $<'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user