11add_definitions ("-DVALIDATOR_EXPORT=DLLEXPORT" )
22
3- # src/trusted/validator_ragel/build.scons built both for both bitness
4- # because it was needed for the rdfa_validator library which looks to
5- # only be used for running some benchmark.
6- if (YOKAI_TARGET_ARCH_I686)
7- set (VALIDATOR_LIB validator32)
8- add_library (${VALIDATOR_LIB} OBJECT "gen/validator_x86_32.c" )
9- elseif (YOKAI_TARGET_ARCH_AMD64)
10- set (VALIDATOR_LIB validator64)
11- add_library (${VALIDATOR_LIB} OBJECT "gen/validator_x86_64.c" )
3+ # RDFA_VALIDATOR is set to ON when building tls_edit.
4+
5+ if (YOKAI_TARGET_ARCH_I686 OR RDFA_VALIDATOR)
6+ add_library (validator32 OBJECT "gen/validator_x86_32.c" )
7+ list (APPEND VALIDATOR_LIBS validator32)
8+ elseif (YOKAI_TARGET_ARCH_AMD64 OR RDFA_VALIDATOR)
9+ add_library (validator64 OBJECT "gen/validator_x86_64.c" )
10+ list (APPEND VALIDATOR_LIBS validator64)
1211endif ()
1312
1413add_library (validator_features_all OBJECT "validator_features_all.c" )
@@ -28,7 +27,12 @@ elseif (YOKAI_TARGET_ARCH_AMD64)
2827 )
2928endif ()
3029
30+ if (RDFA_VALIDATOR)
31+ add_library (rdfa_validator )
32+ target_link_libraries (rdfa_validator ${FEATURES_LIBS} ${VALIDATOR_LIBS} )
33+ endif ()
34+
3135add_library (dfa_validate_caller${VALIDATOR_ARCH_SUFFIX} STATIC ${DFA_VALIDATE_CALLER_INPUTS} )
32- target_link_libraries (dfa_validate_caller${VALIDATOR_ARCH_SUFFIX} ${FEATURES_LIBS} ${VALIDATOR_LIB } )
36+ target_link_libraries (dfa_validate_caller${VALIDATOR_ARCH_SUFFIX} ${FEATURES_LIBS} ${VALIDATOR_LIBS } )
3337
3438add_library (dfa_validate_caller ALIAS dfa_validate_caller${VALIDATOR_ARCH_SUFFIX} )
0 commit comments