gumbo_parser.gyp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright 2013 Google Inc. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. {
  15. 'targets': [
  16. {
  17. 'target_name': 'gumbo_parser',
  18. 'type': 'static_library',
  19. 'cflags': ['-std=c99', '-Wall'],
  20. 'sources': [
  21. 'src/attribute.c',
  22. 'src/attribute.h',
  23. 'src/char_ref.c',
  24. 'src/char_ref.h',
  25. 'src/error.c',
  26. 'src/error.h',
  27. 'src/gumbo.h',
  28. 'src/insertion_mode.h',
  29. 'src/parser.c',
  30. 'src/parser.h',
  31. 'src/string_buffer.c',
  32. 'src/string_buffer.h',
  33. 'src/string_piece.c',
  34. 'src/string_piece.h',
  35. 'src/tag.c',
  36. 'src/token_type.h',
  37. 'src/tokenizer.c',
  38. 'src/tokenizer.h',
  39. 'src/tokenizer_states.h',
  40. 'src/utf8.c',
  41. 'src/utf8.h',
  42. 'src/util.c',
  43. 'src/util.h',
  44. 'src/vector.c',
  45. 'src/vector.h',
  46. ],
  47. },
  48. {
  49. 'target_name': 'gumbo_parser_unittests',
  50. 'type': 'executable',
  51. 'dependencies': [
  52. 'gtest.gyp:gtest',
  53. 'gtest.gyp:gtest_main',
  54. 'gumbo_parser',
  55. ],
  56. 'include_dirs': [
  57. '.',
  58. '..',
  59. 'src',
  60. ],
  61. 'sources': [
  62. 'tests/attribute.cc',
  63. 'tests/char_ref.cc',
  64. 'tests/parser.cc',
  65. 'tests/string_buffer.cc',
  66. 'tests/string_piece.cc',
  67. 'tests/test_utils.cc',
  68. 'tests/test_utils.h',
  69. 'tests/tokenizer.cc',
  70. 'tests/utf8.cc',
  71. 'tests/vector.cc',
  72. ],
  73. },
  74. ],
  75. }