mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	solidity.sh: * introduce SOLIDITY_BUILD_DIR env var for soltest.sh, * add --help output EthOptions.cmake: more complete configuration information CODING_STYLE.md: note existence of .editorconfig contributing.rst: note that tests are Boost C++ unit tests
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # CMAKE macros to set default CMAKE options and to show the
 | |
| # resulting configuration.
 | |
| 
 | |
| macro(configure_project)
 | |
| 	set(NAME ${PROJECT_NAME})
 | |
| 
 | |
| 	# features
 | |
| 	eth_default_option(COVERAGE OFF)
 | |
| 	eth_default_option(OSSFUZZ OFF)
 | |
| 
 | |
| 	# components
 | |
| 	eth_default_option(TESTS ON)
 | |
| 	eth_default_option(TOOLS ON)
 | |
| 
 | |
| 	# Define a matching property name of each of the "features".
 | |
| 	foreach(FEATURE ${ARGN})
 | |
| 		set(SUPPORT_${FEATURE} TRUE)
 | |
| 	endforeach()
 | |
| 
 | |
| 	include(EthBuildInfo)
 | |
| 	create_build_info(${NAME})
 | |
| 	print_config(${NAME})
 | |
| endmacro()
 | |
| 
 | |
| macro(print_config NAME)
 | |
| 	message("")
 | |
| 	message("------------------------------------------------------------------------")
 | |
| 	message("-- Configuring ${NAME} ${PROJECT_VERSION}")
 | |
| 	message("------------------------------------------------------------------------")
 | |
| 	message("--                  CMake Version                            ${CMAKE_VERSION}")
 | |
| 	message("-- CMAKE_BUILD_TYPE Build type                               ${CMAKE_BUILD_TYPE}")
 | |
| 	message("-- TARGET_PLATFORM  Target platform                          ${CMAKE_SYSTEM_NAME}")
 | |
| 	message("--------------------------------------------------------------- features")
 | |
| 	message("-- COVERAGE         Coverage support                         ${COVERAGE}")
 | |
| 	message("------------------------------------------------------------- components")
 | |
| if (SUPPORT_TESTS)
 | |
| 	message("-- TESTS            Build tests                              ${TESTS}")
 | |
| endif()
 | |
| if (SUPPORT_TOOLS)
 | |
| 	message("-- TOOLS            Build tools                              ${TOOLS}")
 | |
| endif()
 | |
| 	message("------------------------------------------------------------------ flags")
 | |
| 	message("-- OSSFUZZ                                                   ${OSSFUZZ}")
 | |
| 	message("-- LLL                                                       ${LLL}")
 | |
| 	message("------------------------------------------------------------------------")
 | |
| 	message("")
 | |
| endmacro()
 |