Book a Demo

Author Topic: Code generation and include paths (C++)  (Read 4916 times)

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
Code generation and include paths (C++)
« on: June 23, 2023, 07:31:04 pm »
Is there a way to either:

1) Avoid having EA generating includes for known data types?
2) Somehow configure the format of includes generated by EA - e.g. switch from backslash to forward slash, use relative paths.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Code generation and include paths (C++)
« Reply #1 on: June 24, 2023, 06:12:51 am »
3) code our own code generator. It's fairly easy and you can do anything you want outside a black box.

q.

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
Re: Code generation and include paths (C++)
« Reply #2 on: July 04, 2023, 04:46:02 pm »
Fixed this by creating a new programming language and copied in all C++ templates. Had to export the new language, update the code options in the exported file, and re-import.

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
Re: Code generation and include paths (C++)
« Reply #3 on: July 04, 2023, 08:12:23 pm »
With a custom language, code generation always overwrites the code - i.e. this solution is only viable for fully autogenerated code.