Rename jerry-libm to jerry-math (#4410)
That "libm" in the name of the library resulted in awkward naming on *nix systems (`libjerry-libm.*`, "lib" occurring twice). And the name of the corresponding header is `math.h` anyway. Note that this is a breaking change in some sense. The commit contains no API change, but the build system does change for users of the math library. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
project (unit-libm C)
|
||||
project (unit-math C)
|
||||
|
||||
# Unit tests main modules
|
||||
file(GLOB SOURCE_UNIT_TEST_MAIN_MODULES *.c)
|
||||
|
||||
# Unit tests declaration
|
||||
add_custom_target(unittests-libm)
|
||||
add_custom_target(unittests-math)
|
||||
|
||||
foreach(SOURCE_UNIT_TEST_MAIN ${SOURCE_UNIT_TEST_MAIN_MODULES})
|
||||
get_filename_component(TARGET_NAME ${SOURCE_UNIT_TEST_MAIN} NAME_WE)
|
||||
@@ -29,7 +29,7 @@ foreach(SOURCE_UNIT_TEST_MAIN ${SOURCE_UNIT_TEST_MAIN_MODULES})
|
||||
set_property(TARGET ${TARGET_NAME} PROPERTY LINK_FLAGS "${LINKER_FLAGS_COMMON}")
|
||||
set_property(TARGET ${TARGET_NAME} PROPERTY RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
|
||||
|
||||
target_link_libraries(${TARGET_NAME} jerry-libm)
|
||||
target_link_libraries(${TARGET_NAME} jerry-math)
|
||||
|
||||
add_dependencies(unittests-libm ${TARGET_NAME})
|
||||
add_dependencies(unittests-math ${TARGET_NAME})
|
||||
endforeach()
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Unit test for jerry-libm
|
||||
* Unit test for jerry-math
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
@@ -90,7 +90,7 @@ int
|
||||
main (void)
|
||||
{
|
||||
#define INF INFINITY
|
||||
#include "test-libm.inc.h"
|
||||
#include "test-math.inc.h"
|
||||
|
||||
return passed ? 0 : 1;
|
||||
} /* main */
|
||||
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* This file is automatically generated by the gen-test-libm.sh script.
|
||||
/* This file is automatically generated by the gen-test-math.sh script.
|
||||
* Do not edit! */
|
||||
|
||||
check_double ("acos (0.0)", acos (0.0), 1.57079632679489655800E+00);
|
||||
Reference in New Issue
Block a user