Commit Graph

24 Commits

Author SHA1 Message Date
Eduardo Almeida
ce614299b4 utils: Remove unnecessary escape character 2025-01-19 22:05:57 +00:00
Eduardo Almeida
37ccf7c06e utils: Declare regex strings as raw
Fixes "SyntaxWarning: invalid escape sequence '\w'" raised since Python3.12
2025-01-19 22:05:57 +00:00
Eduardo Almeida
ac02eabca8 utils: Remove new line at the top of generated file 2025-01-19 22:05:57 +00:00
Eduardo Almeida
5f1cd14516 utils: Add namespace trailing comments to code generated by create-module.py 2025-01-19 22:05:57 +00:00
Eduardo Almeida
4e310a0d96 utils: Use @ Doxygen tags in code generated by create-module.py 2025-01-19 22:05:57 +00:00
André Apitzsch
a5c42bc879 core: Use enum class for TestSuite::Type 2024-03-15 09:27:53 +01:00
André Apitzsch
e46d2a8024 core: Use enum class for TestCase::TestDuration and rename it to TestCase:Duration 2024-03-15 09:27:52 +01:00
Gabriel Ferreira
8f6a3413a4 style: apply black and isort 2023-11-20 21:30:01 -03:00
Eduardo Almeida
1b1654536d utils: Remove extra new lines in the files created by create-module.py 2023-10-11 11:53:14 +00:00
Eduardo Almeida
20ae6fb2d0 python: Explicitly specify the encoding when opening files 2023-08-18 11:21:47 +00:00
Tommaso Pecorella
d00c3d074a utils: add doxygen to create-module.py results 2023-01-26 15:32:58 +00:00
Eduardo Almeida
bfae084517 utils: Update utils scripts to not add emacs comment on new files
- Update create-module.py
- Update print-instrospected-doxygen.cc
2022-10-14 14:13:12 +00:00
Tom Henderson
e34d22bf4b utils: Update "create-module.py" to new coding style 2022-10-06 19:49:37 +00:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Gabriel Ferreira
7652192eb6 util: fix create-module.py example source file 2022-03-13 21:23:47 +00:00
Gabriel Ferreira
42e320d676 doc: CMake docs 2022-02-08 18:40:09 -03:00
Gabriel Ferreira
41aacec626 build: CMake refactoring
Includes:
- refactor build_lib and build_lib_example macros
    - unify src and contrib macros
    - replace macro with function not to leak definitions
    - parse list of arguments
- different cmake-format file for modules to list one item per line
2022-01-28 10:20:18 -03:00
Gabriel Ferreira
f6ef415392 build: CMake bugfixes
Fixes include:
- Handling of relative paths used as output directories
- Accepting comma separated lists of modules to enable/disable
- Echoing all CMake commands at the end of the execution of ns3 script
- More informative optional features summary output
- Replace absolute paths with relative paths in the printed CMake output for less verbose output
- Set debug build type on the CMake side to ensure ccmake doesn't crash
- Prefix INT64X64 with NS3 to indicate user switch
- Compiler version check
- Removal of verbose option
- Suppress empty enabled/disabled module tables

Features include:
- Test for installation/uninstallation of ns-3 as a CMake package
- Test importing ns-3 as a CMake package and use in a 3rd-party project
- Test to check VERSION usage
- ns3 option to enable/disable sanitizers
- Associate headers to libraries targets
2021-12-10 02:13:43 +00:00
Gabriel Ferreira
a893eba7e3 build: Fix CMake and ns3 script bugs, add a test suite and fix formatting 2021-12-05 21:53:49 +00:00
Gabriel Ferreira
9c876c7f5a CMake buildsystem 2021-12-01 12:29:55 -08:00
Tom Henderson
270766a631 utils: Make create-module.py work for Python 3.5 2020-06-25 08:03:39 -07:00
Sébastien Deronne
b0a4444e76 utils: Use CommandLine cmd (__FILE__) instead of COMMANDLINE macro in newly generated module 2020-06-24 20:55:58 +00:00
Steven Smith
dded72e02e build: (fixes #217) Guard compilation of example used as a test
* Added documentation to ExampleAsTestSuite on the need for this guarding
* Updated with Peter's patch for examples-as-test placeholders in wscripts
2020-06-08 09:35:50 -07:00
Peter D. Barnes, Jr
9ddd31c6f9 More flexible create-module.py script
Changed the default creation directory from src/ to contrib/
  Moved create-modules.py from src/ to utils/

Added two new optional command line arguments: --project and --use-src-dir
--project specifies a directory name or path under which the new modules
will be created.
--use-src-dir directs the script to create new modules in the src
directory instead of contrib.  This argument cannot be combined
with --project.

Updated contrib/wscript to search for modules at
arbitrary depths instead of just the child directories under
contrib.

Assume the following directory structure:
contrib/
  project1/
    module1/
      wscript
    module2/
      wscript
  project2/
    sub_project1/
      	module3/
        	wscript
      	module4/
        	wscript
    sub_project2/
      	module5/
        	wscript
      	module6/
        	wscript
    data/
  module7/
    wscript

waf configure will discover the following modules under contrib:
project1/module1
project1/module2
project2/sub_project1/module3
project2/sub_project1/module4
project2/sub_project2/module5
project2/sub_project2/module6
module7
2020-05-20 13:55:28 -07:00