|
788 | 788 | ] |
789 | 789 | }], |
790 | 790 |
|
791 | | - ['node_fipsinstall=="true"', { |
792 | | - 'variables': { |
793 | | - 'openssl-cli': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)openssl-cli<(EXECUTABLE_SUFFIX)', |
794 | | - 'provider_name': 'libopenssl-fipsmodule', |
795 | | - 'opensslconfig': './deps/openssl/nodejs-openssl.cnf', |
796 | | - 'conditions': [ |
797 | | - ['GENERATOR == "ninja"', { |
798 | | - 'fipsmodule_internal': '<(PRODUCT_DIR)/lib/<(provider_name).so', |
799 | | - 'fipsmodule': '<(PRODUCT_DIR)/obj/lib/openssl-modules/fips.so', |
800 | | - 'fipsconfig': '<(PRODUCT_DIR)/obj/lib/fipsmodule.cnf', |
801 | | - 'opensslconfig_internal': '<(PRODUCT_DIR)/obj/lib/openssl.cnf', |
802 | | - }, { |
803 | | - 'fipsmodule_internal': '<(PRODUCT_DIR)/obj.target/deps/openssl/<(provider_name).so', |
804 | | - 'fipsmodule': '<(PRODUCT_DIR)/obj.target/deps/openssl/lib/openssl-modules/fips.so', |
805 | | - 'fipsconfig': '<(PRODUCT_DIR)/obj.target/deps/openssl/fipsmodule.cnf', |
806 | | - 'opensslconfig_internal': '<(PRODUCT_DIR)/obj.target/deps/openssl/openssl.cnf', |
807 | | - }], |
808 | | - ], |
809 | | - }, |
810 | | - 'actions': [ |
811 | | - { |
812 | | - 'action_name': 'fipsinstall', |
813 | | - 'process_outputs_as_sources': 1, |
814 | | - 'inputs': [ |
815 | | - '<(fipsmodule_internal)', |
816 | | - ], |
817 | | - 'outputs': [ |
818 | | - '<(fipsconfig)', |
819 | | - ], |
820 | | - 'action': [ |
821 | | - '<(openssl-cli)', 'fipsinstall', |
822 | | - '-provider_name', '<(provider_name)', |
823 | | - '-module', '<(fipsmodule_internal)', |
824 | | - '-out', '<(fipsconfig)', |
825 | | - #'-quiet', |
826 | | - ], |
827 | | - }, |
828 | | - { |
829 | | - 'action_name': 'copy_fips_module', |
830 | | - 'inputs': [ |
831 | | - '<(fipsmodule_internal)', |
832 | | - ], |
833 | | - 'outputs': [ |
834 | | - '<(fipsmodule)', |
835 | | - ], |
836 | | - 'action': [ |
837 | | - '<(python)', 'tools/copyfile.py', |
838 | | - '<(fipsmodule_internal)', |
839 | | - '<(fipsmodule)', |
840 | | - ], |
841 | | - }, |
842 | | - { |
843 | | - 'action_name': 'copy_openssl_cnf_and_include_fips_cnf', |
844 | | - 'inputs': [ '<(opensslconfig)', ], |
845 | | - 'outputs': [ '<(opensslconfig_internal)', ], |
846 | | - 'action': [ |
847 | | - '<(python)', 'tools/enable_fips_include.py', |
848 | | - '<(opensslconfig)', |
849 | | - '<(opensslconfig_internal)', |
850 | | - '<(fipsconfig)', |
851 | | - ], |
852 | | - }, |
| 791 | + ], |
| 792 | + 'variables': { |
| 793 | + 'opensslconfig_internal': '<(obj_dir)/deps/openssl/openssl.cnf', |
| 794 | + 'opensslconfig': './deps/openssl/nodejs-openssl.cnf', |
| 795 | + }, |
| 796 | + 'actions': [ |
| 797 | + { |
| 798 | + 'action_name': 'reset_openssl_cnf', |
| 799 | + 'inputs': [ '<(opensslconfig)', ], |
| 800 | + 'outputs': [ '<(opensslconfig_internal)', ], |
| 801 | + 'action': [ |
| 802 | + '<(python)', 'tools/copyfile.py', |
| 803 | + '<(opensslconfig)', |
| 804 | + '<(opensslconfig_internal)', |
853 | 805 | ], |
854 | | - }, { |
855 | | - 'variables': { |
856 | | - 'opensslconfig_internal': '<(obj_dir)/deps/openssl/openssl.cnf', |
857 | | - 'opensslconfig': './deps/openssl/nodejs-openssl.cnf', |
858 | | - }, |
859 | | - 'actions': [ |
860 | | - { |
861 | | - 'action_name': 'reset_openssl_cnf', |
862 | | - 'inputs': [ '<(opensslconfig)', ], |
863 | | - 'outputs': [ '<(opensslconfig_internal)', ], |
864 | | - 'action': [ |
865 | | - '<(python)', 'tools/copyfile.py', |
866 | | - '<(opensslconfig)', |
867 | | - '<(opensslconfig_internal)', |
868 | | - ], |
869 | | - }, |
870 | | - ], |
871 | | - }], |
| 806 | + }, |
872 | 807 | ], |
873 | 808 | }, # node_core_target_name |
874 | 809 | { |
|
0 commit comments