cross-macro.j2 706 B

123456789101112131415161718192021
  1. {% macro generate_env(target_host) -%}
  2. CONAN_CROSS_COMPILE={{ target_host }}-
  3. CHOST={{ target_host }}
  4. AR={{ target_host }}-ar
  5. AS={{ target_host }}-as
  6. CC={{ target_host }}-gcc
  7. CXX={{ target_host }}-g++
  8. RANLIB={{ target_host }}-ranlib
  9. STRIP={{ target_host }}-strip
  10. {%- endmacro -%}
  11. {% macro generate_env_win32(target_host) -%}
  12. CONAN_SYSTEM_LIBRARY_LOCATION=/usr/lib/gcc/{{ target_host }}/10-posix/
  13. RC={{ target_host }}-windres
  14. {%- endmacro -%}
  15. {% macro generate_conf(target_host) -%}
  16. tools.build:compiler_executables = {"c": "{{ target_host }}-gcc", "cpp": "{{ target_host }}-g++"}
  17. tools.build:sysroot = /usr/{{ target_host }}
  18. tools.build:defines = ["WINVER=0x0601", "_WIN32_WINNT=0x0601"]
  19. {%- endmacro -%}