gitlab-pygments.rb 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/Gemfile +2 -0
- data/README.md +91 -0
- data/Rakefile +78 -0
- data/bench.rb +22 -0
- data/cache-lexers.rb +8 -0
- data/lexers +0 -0
- data/lib/pygments/lexer.rb +148 -0
- data/lib/pygments/mentos.py +344 -0
- data/lib/pygments/popen.rb +389 -0
- data/lib/pygments/version.rb +3 -0
- data/lib/pygments.rb +8 -0
- data/pygments.rb.gemspec +24 -0
- data/test/test_data.c +2581 -0
- data/test/test_data.py +514 -0
- data/test/test_data_generated +2582 -0
- data/test/test_pygments.rb +276 -0
- data/vendor/custom_formatters/gitlab.py +171 -0
- data/vendor/custom_lexers/github.py +362 -0
- data/vendor/pygments-main/AUTHORS +115 -0
- data/vendor/pygments-main/CHANGES +762 -0
- data/vendor/pygments-main/LICENSE +25 -0
- data/vendor/pygments-main/MANIFEST.in +6 -0
- data/vendor/pygments-main/Makefile +59 -0
- data/vendor/pygments-main/REVISION +1 -0
- data/vendor/pygments-main/TODO +15 -0
- data/vendor/pygments-main/docs/generate.py +472 -0
- data/vendor/pygments-main/docs/pygmentize.1 +94 -0
- data/vendor/pygments-main/docs/src/api.txt +270 -0
- data/vendor/pygments-main/docs/src/authors.txt +5 -0
- data/vendor/pygments-main/docs/src/changelog.txt +5 -0
- data/vendor/pygments-main/docs/src/cmdline.txt +147 -0
- data/vendor/pygments-main/docs/src/filterdevelopment.txt +70 -0
- data/vendor/pygments-main/docs/src/filters.txt +42 -0
- data/vendor/pygments-main/docs/src/formatterdevelopment.txt +169 -0
- data/vendor/pygments-main/docs/src/formatters.txt +48 -0
- data/vendor/pygments-main/docs/src/index.txt +69 -0
- data/vendor/pygments-main/docs/src/installation.txt +71 -0
- data/vendor/pygments-main/docs/src/integrate.txt +43 -0
- data/vendor/pygments-main/docs/src/lexerdevelopment.txt +551 -0
- data/vendor/pygments-main/docs/src/lexers.txt +67 -0
- data/vendor/pygments-main/docs/src/moinmoin.txt +39 -0
- data/vendor/pygments-main/docs/src/plugins.txt +93 -0
- data/vendor/pygments-main/docs/src/quickstart.txt +202 -0
- data/vendor/pygments-main/docs/src/rstdirective.txt +22 -0
- data/vendor/pygments-main/docs/src/styles.txt +143 -0
- data/vendor/pygments-main/docs/src/tokens.txt +349 -0
- data/vendor/pygments-main/docs/src/unicode.txt +49 -0
- data/vendor/pygments-main/external/markdown-processor.py +67 -0
- data/vendor/pygments-main/external/moin-parser.py +112 -0
- data/vendor/pygments-main/external/pygments.bashcomp +38 -0
- data/vendor/pygments-main/external/rst-directive-old.py +77 -0
- data/vendor/pygments-main/external/rst-directive.py +83 -0
- data/vendor/pygments-main/ez_setup.py +276 -0
- data/vendor/pygments-main/pygmentize +7 -0
- data/vendor/pygments-main/pygments/__init__.py +91 -0
- data/vendor/pygments-main/pygments/cmdline.py +433 -0
- data/vendor/pygments-main/pygments/console.py +74 -0
- data/vendor/pygments-main/pygments/filter.py +74 -0
- data/vendor/pygments-main/pygments/filters/__init__.py +357 -0
- data/vendor/pygments-main/pygments/formatter.py +92 -0
- data/vendor/pygments-main/pygments/formatters/__init__.py +68 -0
- data/vendor/pygments-main/pygments/formatters/_mapping.py +94 -0
- data/vendor/pygments-main/pygments/formatters/bbcode.py +109 -0
- data/vendor/pygments-main/pygments/formatters/gitlab.py +171 -0
- data/vendor/pygments-main/pygments/formatters/html.py +750 -0
- data/vendor/pygments-main/pygments/formatters/img.py +553 -0
- data/vendor/pygments-main/pygments/formatters/latex.py +378 -0
- data/vendor/pygments-main/pygments/formatters/other.py +117 -0
- data/vendor/pygments-main/pygments/formatters/rtf.py +136 -0
- data/vendor/pygments-main/pygments/formatters/svg.py +154 -0
- data/vendor/pygments-main/pygments/formatters/terminal.py +112 -0
- data/vendor/pygments-main/pygments/formatters/terminal256.py +222 -0
- data/vendor/pygments-main/pygments/lexer.py +697 -0
- data/vendor/pygments-main/pygments/lexers/__init__.py +229 -0
- data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1645 -0
- data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +232 -0
- data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +249 -0
- data/vendor/pygments-main/pygments/lexers/_mapping.py +298 -0
- data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +3787 -0
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +232 -0
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +29 -0
- data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +3 -0
- data/vendor/pygments-main/pygments/lexers/agile.py +1803 -0
- data/vendor/pygments-main/pygments/lexers/asm.py +360 -0
- data/vendor/pygments-main/pygments/lexers/compiled.py +2891 -0
- data/vendor/pygments-main/pygments/lexers/dotnet.py +636 -0
- data/vendor/pygments-main/pygments/lexers/functional.py +1832 -0
- data/vendor/pygments-main/pygments/lexers/github.py +362 -0
- data/vendor/pygments-main/pygments/lexers/hdl.py +356 -0
- data/vendor/pygments-main/pygments/lexers/jvm.py +847 -0
- data/vendor/pygments-main/pygments/lexers/math.py +1072 -0
- data/vendor/pygments-main/pygments/lexers/other.py +3339 -0
- data/vendor/pygments-main/pygments/lexers/parsers.py +695 -0
- data/vendor/pygments-main/pygments/lexers/shell.py +361 -0
- data/vendor/pygments-main/pygments/lexers/special.py +100 -0
- data/vendor/pygments-main/pygments/lexers/sql.py +559 -0
- data/vendor/pygments-main/pygments/lexers/templates.py +1631 -0
- data/vendor/pygments-main/pygments/lexers/text.py +1753 -0
- data/vendor/pygments-main/pygments/lexers/web.py +2864 -0
- data/vendor/pygments-main/pygments/plugin.py +74 -0
- data/vendor/pygments-main/pygments/scanner.py +104 -0
- data/vendor/pygments-main/pygments/style.py +117 -0
- data/vendor/pygments-main/pygments/styles/__init__.py +70 -0
- data/vendor/pygments-main/pygments/styles/autumn.py +65 -0
- data/vendor/pygments-main/pygments/styles/borland.py +51 -0
- data/vendor/pygments-main/pygments/styles/bw.py +49 -0
- data/vendor/pygments-main/pygments/styles/colorful.py +81 -0
- data/vendor/pygments-main/pygments/styles/default.py +73 -0
- data/vendor/pygments-main/pygments/styles/emacs.py +72 -0
- data/vendor/pygments-main/pygments/styles/friendly.py +72 -0
- data/vendor/pygments-main/pygments/styles/fruity.py +42 -0
- data/vendor/pygments-main/pygments/styles/manni.py +75 -0
- data/vendor/pygments-main/pygments/styles/monokai.py +106 -0
- data/vendor/pygments-main/pygments/styles/murphy.py +80 -0
- data/vendor/pygments-main/pygments/styles/native.py +65 -0
- data/vendor/pygments-main/pygments/styles/pastie.py +75 -0
- data/vendor/pygments-main/pygments/styles/perldoc.py +69 -0
- data/vendor/pygments-main/pygments/styles/rrt.py +33 -0
- data/vendor/pygments-main/pygments/styles/tango.py +141 -0
- data/vendor/pygments-main/pygments/styles/trac.py +63 -0
- data/vendor/pygments-main/pygments/styles/vim.py +63 -0
- data/vendor/pygments-main/pygments/styles/vs.py +38 -0
- data/vendor/pygments-main/pygments/token.py +195 -0
- data/vendor/pygments-main/pygments/unistring.py +130 -0
- data/vendor/pygments-main/pygments/util.py +232 -0
- data/vendor/pygments-main/scripts/check_sources.py +242 -0
- data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +30 -0
- data/vendor/pygments-main/scripts/epydoc.css +280 -0
- data/vendor/pygments-main/scripts/find_codetags.py +205 -0
- data/vendor/pygments-main/scripts/find_error.py +171 -0
- data/vendor/pygments-main/scripts/get_vimkw.py +43 -0
- data/vendor/pygments-main/scripts/pylintrc +301 -0
- data/vendor/pygments-main/scripts/reindent.py +291 -0
- data/vendor/pygments-main/scripts/vim2pygments.py +933 -0
- data/vendor/pygments-main/setup.cfg +6 -0
- data/vendor/pygments-main/setup.py +88 -0
- data/vendor/pygments-main/tests/dtds/HTML4-f.dtd +37 -0
- data/vendor/pygments-main/tests/dtds/HTML4-s.dtd +869 -0
- data/vendor/pygments-main/tests/dtds/HTML4.dcl +88 -0
- data/vendor/pygments-main/tests/dtds/HTML4.dtd +1092 -0
- data/vendor/pygments-main/tests/dtds/HTML4.soc +9 -0
- data/vendor/pygments-main/tests/dtds/HTMLlat1.ent +195 -0
- data/vendor/pygments-main/tests/dtds/HTMLspec.ent +77 -0
- data/vendor/pygments-main/tests/dtds/HTMLsym.ent +241 -0
- data/vendor/pygments-main/tests/examplefiles/ANTLRv3.g +608 -0
- data/vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs +209 -0
- data/vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu +102 -0
- data/vendor/pygments-main/tests/examplefiles/CPDictionary.j +611 -0
- data/vendor/pygments-main/tests/examplefiles/Constants.mo +158 -0
- data/vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs +411 -0
- data/vendor/pygments-main/tests/examplefiles/Errors.scala +18 -0
- data/vendor/pygments-main/tests/examplefiles/File.hy +174 -0
- data/vendor/pygments-main/tests/examplefiles/Intro.java +1660 -0
- data/vendor/pygments-main/tests/examplefiles/Makefile +1131 -0
- data/vendor/pygments-main/tests/examplefiles/Object.st +4394 -0
- data/vendor/pygments-main/tests/examplefiles/OrderedMap.hx +584 -0
- data/vendor/pygments-main/tests/examplefiles/SmallCheck.hs +378 -0
- data/vendor/pygments-main/tests/examplefiles/Sorting.mod +470 -0
- data/vendor/pygments-main/tests/examplefiles/Sudoku.lhs +382 -0
- data/vendor/pygments-main/tests/examplefiles/addressbook.proto +30 -0
- data/vendor/pygments-main/tests/examplefiles/antlr_throws +1 -0
- data/vendor/pygments-main/tests/examplefiles/apache2.conf +393 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test.as +143 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test2.as +46 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test3.as +3 -0
- data/vendor/pygments-main/tests/examplefiles/aspx-cs_example +27 -0
- data/vendor/pygments-main/tests/examplefiles/badcase.java +2 -0
- data/vendor/pygments-main/tests/examplefiles/batchfile.bat +49 -0
- data/vendor/pygments-main/tests/examplefiles/boot-9.scm +1557 -0
- data/vendor/pygments-main/tests/examplefiles/cells.ps +515 -0
- data/vendor/pygments-main/tests/examplefiles/ceval.c +2604 -0
- data/vendor/pygments-main/tests/examplefiles/cheetah_example.html +13 -0
- data/vendor/pygments-main/tests/examplefiles/classes.dylan +40 -0
- data/vendor/pygments-main/tests/examplefiles/condensed_ruby.rb +10 -0
- data/vendor/pygments-main/tests/examplefiles/coq_RelationClasses +447 -0
- data/vendor/pygments-main/tests/examplefiles/database.pytb +20 -0
- data/vendor/pygments-main/tests/examplefiles/de.MoinMoin.po +2461 -0
- data/vendor/pygments-main/tests/examplefiles/demo.ahk +181 -0
- data/vendor/pygments-main/tests/examplefiles/demo.cfm +38 -0
- data/vendor/pygments-main/tests/examplefiles/django_sample.html+django +68 -0
- data/vendor/pygments-main/tests/examplefiles/dwarf.cw +17 -0
- data/vendor/pygments-main/tests/examplefiles/erl_session +10 -0
- data/vendor/pygments-main/tests/examplefiles/escape_semicolon.clj +1 -0
- data/vendor/pygments-main/tests/examplefiles/evil_regex.js +48 -0
- data/vendor/pygments-main/tests/examplefiles/example.c +2080 -0
- data/vendor/pygments-main/tests/examplefiles/example.cls +15 -0
- data/vendor/pygments-main/tests/examplefiles/example.cpp +2363 -0
- data/vendor/pygments-main/tests/examplefiles/example.gs +106 -0
- data/vendor/pygments-main/tests/examplefiles/example.gst +7 -0
- data/vendor/pygments-main/tests/examplefiles/example.kt +47 -0
- data/vendor/pygments-main/tests/examplefiles/example.lua +250 -0
- data/vendor/pygments-main/tests/examplefiles/example.moo +26 -0
- data/vendor/pygments-main/tests/examplefiles/example.moon +629 -0
- data/vendor/pygments-main/tests/examplefiles/example.nim +1010 -0
- data/vendor/pygments-main/tests/examplefiles/example.ns2 +69 -0
- data/vendor/pygments-main/tests/examplefiles/example.p +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.pas +2708 -0
- data/vendor/pygments-main/tests/examplefiles/example.rb +1852 -0
- data/vendor/pygments-main/tests/examplefiles/example.rhtml +561 -0
- data/vendor/pygments-main/tests/examplefiles/example.sh-session +19 -0
- data/vendor/pygments-main/tests/examplefiles/example.sml +156 -0
- data/vendor/pygments-main/tests/examplefiles/example.snobol +15 -0
- data/vendor/pygments-main/tests/examplefiles/example.tea +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.u +548 -0
- data/vendor/pygments-main/tests/examplefiles/example.weechatlog +9 -0
- data/vendor/pygments-main/tests/examplefiles/example.xhtml +376 -0
- data/vendor/pygments-main/tests/examplefiles/example.yaml +302 -0
- data/vendor/pygments-main/tests/examplefiles/example2.aspx +29 -0
- data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +363 -0
- data/vendor/pygments-main/tests/examplefiles/example_file.fy +128 -0
- data/vendor/pygments-main/tests/examplefiles/firefox.mak +586 -0
- data/vendor/pygments-main/tests/examplefiles/flipflop.sv +19 -0
- data/vendor/pygments-main/tests/examplefiles/foo.sce +6 -0
- data/vendor/pygments-main/tests/examplefiles/format.ml +1213 -0
- data/vendor/pygments-main/tests/examplefiles/fucked_up.rb +77 -0
- data/vendor/pygments-main/tests/examplefiles/function.mu +1 -0
- data/vendor/pygments-main/tests/examplefiles/functional.rst +1472 -0
- data/vendor/pygments-main/tests/examplefiles/genclass.clj +510 -0
- data/vendor/pygments-main/tests/examplefiles/genshi_example.xml+genshi +193 -0
- data/vendor/pygments-main/tests/examplefiles/genshitext_example.genshitext +33 -0
- data/vendor/pygments-main/tests/examplefiles/glsl.frag +7 -0
- data/vendor/pygments-main/tests/examplefiles/glsl.vert +13 -0
- data/vendor/pygments-main/tests/examplefiles/html+php_faulty.php +1 -0
- data/vendor/pygments-main/tests/examplefiles/http_request_example +14 -0
- data/vendor/pygments-main/tests/examplefiles/http_response_example +27 -0
- data/vendor/pygments-main/tests/examplefiles/import.hs +4 -0
- data/vendor/pygments-main/tests/examplefiles/intro.ik +24 -0
- data/vendor/pygments-main/tests/examplefiles/ints.php +10 -0
- data/vendor/pygments-main/tests/examplefiles/intsyn.fun +675 -0
- data/vendor/pygments-main/tests/examplefiles/intsyn.sig +286 -0
- data/vendor/pygments-main/tests/examplefiles/irb_heredoc +8 -0
- data/vendor/pygments-main/tests/examplefiles/irc.lsp +214 -0
- data/vendor/pygments-main/tests/examplefiles/java.properties +16 -0
- data/vendor/pygments-main/tests/examplefiles/jbst_example1.jbst +28 -0
- data/vendor/pygments-main/tests/examplefiles/jbst_example2.jbst +45 -0
- data/vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst +713 -0
- data/vendor/pygments-main/tests/examplefiles/lighttpd_config.conf +13 -0
- data/vendor/pygments-main/tests/examplefiles/linecontinuation.py +47 -0
- data/vendor/pygments-main/tests/examplefiles/ltmain.sh +2849 -0
- data/vendor/pygments-main/tests/examplefiles/main.cmake +42 -0
- data/vendor/pygments-main/tests/examplefiles/markdown.lsp +679 -0
- data/vendor/pygments-main/tests/examplefiles/matlab_noreturn +3 -0
- data/vendor/pygments-main/tests/examplefiles/matlab_sample +27 -0
- data/vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt +37 -0
- data/vendor/pygments-main/tests/examplefiles/minimal.ns2 +4 -0
- data/vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt +340 -0
- data/vendor/pygments-main/tests/examplefiles/multiline_regexes.rb +38 -0
- data/vendor/pygments-main/tests/examplefiles/nasm_aoutso.asm +96 -0
- data/vendor/pygments-main/tests/examplefiles/nasm_objexe.asm +30 -0
- data/vendor/pygments-main/tests/examplefiles/nemerle_sample.n +87 -0
- data/vendor/pygments-main/tests/examplefiles/nginx_nginx.conf +118 -0
- data/vendor/pygments-main/tests/examplefiles/numbers.c +12 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example.m +25 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example2.m +24 -0
- data/vendor/pygments-main/tests/examplefiles/perl_misc +62 -0
- data/vendor/pygments-main/tests/examplefiles/perl_perl5db +998 -0
- data/vendor/pygments-main/tests/examplefiles/perl_regex-delims +120 -0
- data/vendor/pygments-main/tests/examplefiles/perlfunc.1 +856 -0
- data/vendor/pygments-main/tests/examplefiles/phpcomplete.vim +567 -0
- data/vendor/pygments-main/tests/examplefiles/pleac.in.rb +1223 -0
- data/vendor/pygments-main/tests/examplefiles/postgresql_test.txt +47 -0
- data/vendor/pygments-main/tests/examplefiles/pppoe.applescript +10 -0
- data/vendor/pygments-main/tests/examplefiles/psql_session.txt +122 -0
- data/vendor/pygments-main/tests/examplefiles/py3_test.txt +2 -0
- data/vendor/pygments-main/tests/examplefiles/pycon_test.pycon +14 -0
- data/vendor/pygments-main/tests/examplefiles/pytb_test2.pytb +2 -0
- data/vendor/pygments-main/tests/examplefiles/python25-bsd.mak +234 -0
- data/vendor/pygments-main/tests/examplefiles/qsort.prolog +13 -0
- data/vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout +38 -0
- data/vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan +280 -0
- data/vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet +2 -0
- data/vendor/pygments-main/tests/examplefiles/regex.js +22 -0
- data/vendor/pygments-main/tests/examplefiles/reversi.lsp +427 -0
- data/vendor/pygments-main/tests/examplefiles/ruby_func_def.rb +11 -0
- data/vendor/pygments-main/tests/examplefiles/scilab.sci +30 -0
- data/vendor/pygments-main/tests/examplefiles/sibling.prolog +19 -0
- data/vendor/pygments-main/tests/examplefiles/simple.md +747 -0
- data/vendor/pygments-main/tests/examplefiles/smarty_example.html +209 -0
- data/vendor/pygments-main/tests/examplefiles/source.lgt +343 -0
- data/vendor/pygments-main/tests/examplefiles/sources.list +62 -0
- data/vendor/pygments-main/tests/examplefiles/sphere.pov +18 -0
- data/vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console +27 -0
- data/vendor/pygments-main/tests/examplefiles/squid.conf +30 -0
- data/vendor/pygments-main/tests/examplefiles/string.jl +1031 -0
- data/vendor/pygments-main/tests/examplefiles/string_delimiters.d +21 -0
- data/vendor/pygments-main/tests/examplefiles/stripheredoc.sh +3 -0
- data/vendor/pygments-main/tests/examplefiles/test.R +119 -0
- data/vendor/pygments-main/tests/examplefiles/test.adb +211 -0
- data/vendor/pygments-main/tests/examplefiles/test.asy +131 -0
- data/vendor/pygments-main/tests/examplefiles/test.awk +121 -0
- data/vendor/pygments-main/tests/examplefiles/test.bas +29 -0
- data/vendor/pygments-main/tests/examplefiles/test.bmx +145 -0
- data/vendor/pygments-main/tests/examplefiles/test.boo +39 -0
- data/vendor/pygments-main/tests/examplefiles/test.bro +250 -0
- data/vendor/pygments-main/tests/examplefiles/test.cs +374 -0
- data/vendor/pygments-main/tests/examplefiles/test.css +54 -0
- data/vendor/pygments-main/tests/examplefiles/test.d +135 -0
- data/vendor/pygments-main/tests/examplefiles/test.dart +23 -0
- data/vendor/pygments-main/tests/examplefiles/test.dtd +89 -0
- data/vendor/pygments-main/tests/examplefiles/test.ec +605 -0
- data/vendor/pygments-main/tests/examplefiles/test.ecl +58 -0
- data/vendor/pygments-main/tests/examplefiles/test.eh +315 -0
- data/vendor/pygments-main/tests/examplefiles/test.erl +169 -0
- data/vendor/pygments-main/tests/examplefiles/test.evoque +33 -0
- data/vendor/pygments-main/tests/examplefiles/test.fan +818 -0
- data/vendor/pygments-main/tests/examplefiles/test.flx +57 -0
- data/vendor/pygments-main/tests/examplefiles/test.gdc +13 -0
- data/vendor/pygments-main/tests/examplefiles/test.groovy +97 -0
- data/vendor/pygments-main/tests/examplefiles/test.html +339 -0
- data/vendor/pygments-main/tests/examplefiles/test.ini +10 -0
- data/vendor/pygments-main/tests/examplefiles/test.java +653 -0
- data/vendor/pygments-main/tests/examplefiles/test.jsp +24 -0
- data/vendor/pygments-main/tests/examplefiles/test.maql +45 -0
- data/vendor/pygments-main/tests/examplefiles/test.mod +374 -0
- data/vendor/pygments-main/tests/examplefiles/test.moo +51 -0
- data/vendor/pygments-main/tests/examplefiles/test.myt +166 -0
- data/vendor/pygments-main/tests/examplefiles/test.nim +93 -0
- data/vendor/pygments-main/tests/examplefiles/test.pas +743 -0
- data/vendor/pygments-main/tests/examplefiles/test.php +505 -0
- data/vendor/pygments-main/tests/examplefiles/test.plot +333 -0
- data/vendor/pygments-main/tests/examplefiles/test.ps1 +108 -0
- data/vendor/pygments-main/tests/examplefiles/test.pypylog +1839 -0
- data/vendor/pygments-main/tests/examplefiles/test.r3 +94 -0
- data/vendor/pygments-main/tests/examplefiles/test.rb +177 -0
- data/vendor/pygments-main/tests/examplefiles/test.rhtml +43 -0
- data/vendor/pygments-main/tests/examplefiles/test.scaml +8 -0
- data/vendor/pygments-main/tests/examplefiles/test.ssp +12 -0
- data/vendor/pygments-main/tests/examplefiles/test.tcsh +830 -0
- data/vendor/pygments-main/tests/examplefiles/test.vb +407 -0
- data/vendor/pygments-main/tests/examplefiles/test.vhdl +161 -0
- data/vendor/pygments-main/tests/examplefiles/test.xqy +138 -0
- data/vendor/pygments-main/tests/examplefiles/test.xsl +23 -0
- data/vendor/pygments-main/tests/examplefiles/truncated.pytb +15 -0
- data/vendor/pygments-main/tests/examplefiles/type.lisp +1202 -0
- data/vendor/pygments-main/tests/examplefiles/underscore.coffee +603 -0
- data/vendor/pygments-main/tests/examplefiles/unicode.applescript +5 -0
- data/vendor/pygments-main/tests/examplefiles/unicodedoc.py +11 -0
- data/vendor/pygments-main/tests/examplefiles/webkit-transition.css +3 -0
- data/vendor/pygments-main/tests/examplefiles/while.pov +13 -0
- data/vendor/pygments-main/tests/examplefiles/wiki.factor +384 -0
- data/vendor/pygments-main/tests/examplefiles/xml_example +1897 -0
- data/vendor/pygments-main/tests/examplefiles/zmlrpc.f90 +798 -0
- data/vendor/pygments-main/tests/old_run.py +138 -0
- data/vendor/pygments-main/tests/run.py +48 -0
- data/vendor/pygments-main/tests/support.py +15 -0
- data/vendor/pygments-main/tests/test_basic_api.py +294 -0
- data/vendor/pygments-main/tests/test_clexer.py +31 -0
- data/vendor/pygments-main/tests/test_cmdline.py +105 -0
- data/vendor/pygments-main/tests/test_examplefiles.py +97 -0
- data/vendor/pygments-main/tests/test_html_formatter.py +162 -0
- data/vendor/pygments-main/tests/test_latex_formatter.py +55 -0
- data/vendor/pygments-main/tests/test_perllexer.py +137 -0
- data/vendor/pygments-main/tests/test_regexlexer.py +47 -0
- data/vendor/pygments-main/tests/test_token.py +46 -0
- data/vendor/pygments-main/tests/test_using_api.py +40 -0
- data/vendor/pygments-main/tests/test_util.py +116 -0
- data/vendor/simplejson/.gitignore +10 -0
- data/vendor/simplejson/.travis.yml +5 -0
- data/vendor/simplejson/CHANGES.txt +291 -0
- data/vendor/simplejson/LICENSE.txt +19 -0
- data/vendor/simplejson/MANIFEST.in +5 -0
- data/vendor/simplejson/README.rst +19 -0
- data/vendor/simplejson/conf.py +179 -0
- data/vendor/simplejson/index.rst +628 -0
- data/vendor/simplejson/scripts/make_docs.py +18 -0
- data/vendor/simplejson/setup.py +104 -0
- data/vendor/simplejson/simplejson/__init__.py +510 -0
- data/vendor/simplejson/simplejson/_speedups.c +2745 -0
- data/vendor/simplejson/simplejson/decoder.py +425 -0
- data/vendor/simplejson/simplejson/encoder.py +567 -0
- data/vendor/simplejson/simplejson/ordered_dict.py +119 -0
- data/vendor/simplejson/simplejson/scanner.py +77 -0
- data/vendor/simplejson/simplejson/tests/__init__.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_bigint_as_string.py +55 -0
- data/vendor/simplejson/simplejson/tests/test_check_circular.py +30 -0
- data/vendor/simplejson/simplejson/tests/test_decimal.py +66 -0
- data/vendor/simplejson/simplejson/tests/test_decode.py +83 -0
- data/vendor/simplejson/simplejson/tests/test_default.py +9 -0
- data/vendor/simplejson/simplejson/tests/test_dump.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_encode_basestring_ascii.py +46 -0
- data/vendor/simplejson/simplejson/tests/test_encode_for_html.py +32 -0
- data/vendor/simplejson/simplejson/tests/test_errors.py +34 -0
- data/vendor/simplejson/simplejson/tests/test_fail.py +91 -0
- data/vendor/simplejson/simplejson/tests/test_float.py +19 -0
- data/vendor/simplejson/simplejson/tests/test_indent.py +86 -0
- data/vendor/simplejson/simplejson/tests/test_item_sort_key.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_namedtuple.py +121 -0
- data/vendor/simplejson/simplejson/tests/test_pass1.py +76 -0
- data/vendor/simplejson/simplejson/tests/test_pass2.py +14 -0
- data/vendor/simplejson/simplejson/tests/test_pass3.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_recursion.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_scanstring.py +117 -0
- data/vendor/simplejson/simplejson/tests/test_separators.py +42 -0
- data/vendor/simplejson/simplejson/tests/test_speedups.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_tuple.py +49 -0
- data/vendor/simplejson/simplejson/tests/test_unicode.py +109 -0
- data/vendor/simplejson/simplejson/tool.py +39 -0
- metadata +492 -0
@@ -0,0 +1,586 @@
|
|
1
|
+
#
|
2
|
+
# ***** BEGIN LICENSE BLOCK *****
|
3
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
4
|
+
#
|
5
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
6
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
7
|
+
# the License. You may obtain a copy of the License at
|
8
|
+
# http://www.mozilla.org/MPL/
|
9
|
+
#
|
10
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
11
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
12
|
+
# for the specific language governing rights and limitations under the
|
13
|
+
# License.
|
14
|
+
#
|
15
|
+
# The Original Code is mozilla.org code.
|
16
|
+
#
|
17
|
+
# The Initial Developer of the Original Code is
|
18
|
+
# Netscape Communications Corporation.
|
19
|
+
# Portions created by the Initial Developer are Copyright (C) 1998
|
20
|
+
# the Initial Developer. All Rights Reserved.
|
21
|
+
#
|
22
|
+
# Contributor(s):
|
23
|
+
#
|
24
|
+
# Alternatively, the contents of this file may be used under the terms of
|
25
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
26
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
27
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
28
|
+
# of those above. If you wish to allow use of your version of this file only
|
29
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
30
|
+
# use your version of this file under the terms of the MPL, indicate your
|
31
|
+
# decision by deleting the provisions above and replace them with the notice
|
32
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
33
|
+
# the provisions above, a recipient may use your version of this file under
|
34
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
35
|
+
#
|
36
|
+
# ***** END LICENSE BLOCK *****
|
37
|
+
|
38
|
+
DEPTH = .
|
39
|
+
topsrcdir = @top_srcdir@
|
40
|
+
srcdir = @srcdir@
|
41
|
+
VPATH = @srcdir@
|
42
|
+
|
43
|
+
include $(DEPTH)/config/autoconf.mk
|
44
|
+
|
45
|
+
include $(topsrcdir)/build/unix/modules.mk
|
46
|
+
|
47
|
+
ifeq ($(BUILD_MODULES),all)
|
48
|
+
#
|
49
|
+
# And now for something completely different...
|
50
|
+
# Divide the default build into tiers.
|
51
|
+
# Tiers must be defined on module boundaries
|
52
|
+
#
|
53
|
+
SUPPRESS_DEFAULT_RULES = 1
|
54
|
+
|
55
|
+
default alldep all:: $(SUBMAKEFILES)
|
56
|
+
$(RM) -rf $(DIST)/sdk
|
57
|
+
$(RM) -rf $(DIST)/include
|
58
|
+
$(MAKE) -C config export
|
59
|
+
$(MAKE) nspr
|
60
|
+
$(MAKE) ldap
|
61
|
+
$(MAKE) tier_0
|
62
|
+
$(MAKE) tier_1
|
63
|
+
$(MAKE) tier_2
|
64
|
+
$(MAKE) tier_9
|
65
|
+
$(MAKE) tier_50
|
66
|
+
$(MAKE) tier_99
|
67
|
+
|
68
|
+
# Make sure that the existing rulesets work
|
69
|
+
DIRS = \
|
70
|
+
$(tier_0_dirs) \
|
71
|
+
$(tier_1_dirs) \
|
72
|
+
$(tier_2_dirs) \
|
73
|
+
$(tier_9_dirs) \
|
74
|
+
$(tier_50_dirs) \
|
75
|
+
$(NULL)
|
76
|
+
|
77
|
+
ifdef GC_LEAK_DETECTOR
|
78
|
+
DIRS += gc/boehm
|
79
|
+
endif
|
80
|
+
|
81
|
+
DIRS += $(tier_99_dirs)
|
82
|
+
|
83
|
+
#
|
84
|
+
# tier 0 - base build config dirs
|
85
|
+
#
|
86
|
+
tier_0_dirs = \
|
87
|
+
config \
|
88
|
+
build \
|
89
|
+
$(NULL)
|
90
|
+
|
91
|
+
#
|
92
|
+
# tier 1 - 3rd party individual libraries
|
93
|
+
#
|
94
|
+
tier_1_dirs += dbm
|
95
|
+
|
96
|
+
ifndef MOZ_NATIVE_JPEG
|
97
|
+
tier_1_dirs += jpeg
|
98
|
+
endif
|
99
|
+
|
100
|
+
ifndef MOZ_NATIVE_ZLIB
|
101
|
+
tier_1_dirs += modules/zlib
|
102
|
+
endif
|
103
|
+
|
104
|
+
# Installer needs standalone libjar, hence standalone zlib
|
105
|
+
ifdef MOZ_INSTALLER
|
106
|
+
tier_1_dirs += modules/zlib/standalone
|
107
|
+
endif
|
108
|
+
|
109
|
+
ifdef MOZ_UPDATER
|
110
|
+
tier_1_dirs += modules/libbz2
|
111
|
+
tier_1_dirs += modules/libmar
|
112
|
+
endif
|
113
|
+
|
114
|
+
ifdef MOZ_SVG_RENDERER_LIBART
|
115
|
+
tier_1_dirs += other-licenses/libart_lgpl
|
116
|
+
endif
|
117
|
+
|
118
|
+
#
|
119
|
+
# tier 2 - base libraries
|
120
|
+
#
|
121
|
+
tier_2_dirs = \
|
122
|
+
js \
|
123
|
+
xpcom \
|
124
|
+
$(NULL)
|
125
|
+
|
126
|
+
ifndef MOZ_NO_XPCOM_OBSOLETE
|
127
|
+
tier_2_dirs += modules/libreg xpcom/obsolete
|
128
|
+
endif
|
129
|
+
|
130
|
+
ifdef NS_TRACE_MALLOC
|
131
|
+
tier_2_dirs += tools/trace-malloc/lib
|
132
|
+
endif
|
133
|
+
|
134
|
+
#
|
135
|
+
# tier 9 - core components (necko,gecko)
|
136
|
+
#
|
137
|
+
|
138
|
+
tier_9_dirs += \
|
139
|
+
js/src/xpconnect \
|
140
|
+
intl \
|
141
|
+
db \
|
142
|
+
$(NULL)
|
143
|
+
|
144
|
+
ifdef MOZ_STORAGE
|
145
|
+
tier_9_dirs += storage
|
146
|
+
endif
|
147
|
+
|
148
|
+
ifdef MOZ_ENABLE_XLIB
|
149
|
+
tier_9_dirs += gfx/src/xlibrgb widget/src/xlibxtbin
|
150
|
+
endif
|
151
|
+
|
152
|
+
ifdef MOZ_ENABLE_GTK
|
153
|
+
tier_9_dirs += widget/src/gtksuperwin widget/src/gtkxtbin
|
154
|
+
endif
|
155
|
+
|
156
|
+
ifdef MOZ_ENABLE_GTK2
|
157
|
+
tier_9_dirs += widget/src/gtkxtbin
|
158
|
+
endif
|
159
|
+
|
160
|
+
ifdef MOZ_IPCD
|
161
|
+
tier_9_dirs += ipc/ipcd
|
162
|
+
endif
|
163
|
+
|
164
|
+
ifdef MOZ_JSDEBUGGER
|
165
|
+
tier_9_dirs += js/jsd
|
166
|
+
endif
|
167
|
+
|
168
|
+
tier_9_dirs += \
|
169
|
+
modules/libutil \
|
170
|
+
netwerk \
|
171
|
+
modules/libjar \
|
172
|
+
uriloader \
|
173
|
+
modules/libpref \
|
174
|
+
modules/libimg \
|
175
|
+
caps \
|
176
|
+
rdf \
|
177
|
+
parser/expat \
|
178
|
+
parser/xml \
|
179
|
+
parser/htmlparser \
|
180
|
+
gfx \
|
181
|
+
modules/libpr0n \
|
182
|
+
sun-java \
|
183
|
+
modules/plugin \
|
184
|
+
dom \
|
185
|
+
view \
|
186
|
+
widget \
|
187
|
+
content \
|
188
|
+
layout \
|
189
|
+
xpfe/components/shistory \
|
190
|
+
docshell \
|
191
|
+
webshell \
|
192
|
+
embedding \
|
193
|
+
editor \
|
194
|
+
xpfe/appshell \
|
195
|
+
$(NULL)
|
196
|
+
|
197
|
+
ifdef MOZ_OJI
|
198
|
+
tier_9_dirs += \
|
199
|
+
js/src/liveconnect \
|
200
|
+
modules/oji \
|
201
|
+
$(NULL)
|
202
|
+
endif
|
203
|
+
|
204
|
+
ifdef ACCESSIBILITY
|
205
|
+
tier_9_dirs += accessible
|
206
|
+
endif
|
207
|
+
|
208
|
+
#
|
209
|
+
# tier 50 - xpfe & toolkit
|
210
|
+
#
|
211
|
+
|
212
|
+
ifdef MOZ_XUL
|
213
|
+
ifdef MOZ_XUL_APP
|
214
|
+
tier_50_dirs += chrome
|
215
|
+
else
|
216
|
+
tier_50_dirs += rdf/chrome
|
217
|
+
endif
|
218
|
+
else
|
219
|
+
tier_50_dirs += embedding/minimo/chromelite
|
220
|
+
endif
|
221
|
+
|
222
|
+
tier_50_dirs += profile
|
223
|
+
|
224
|
+
# This must preceed xpfe
|
225
|
+
ifdef MOZ_JPROF
|
226
|
+
tier_50_dirs += tools/jprof
|
227
|
+
endif
|
228
|
+
|
229
|
+
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
230
|
+
tier_50_dirs += xpfe/bootstrap/appleevents
|
231
|
+
endif
|
232
|
+
|
233
|
+
tier_50_dirs += \
|
234
|
+
xpfe \
|
235
|
+
toolkit/components \
|
236
|
+
$(NULL)
|
237
|
+
|
238
|
+
ifndef MOZ_XUL_APP
|
239
|
+
tier_50_dirs += themes
|
240
|
+
endif
|
241
|
+
|
242
|
+
ifdef MOZ_ENABLE_XREMOTE
|
243
|
+
tier_50_dirs += widget/src/xremoteclient
|
244
|
+
endif
|
245
|
+
|
246
|
+
ifdef MOZ_XUL_APP
|
247
|
+
tier_50_dirs += toolkit
|
248
|
+
endif
|
249
|
+
|
250
|
+
ifdef MOZ_PHOENIX
|
251
|
+
#XXXBlake this shell path is a temp hack; toolkit shouldn't depend on browser
|
252
|
+
tier_50_dirs += browser/components/shell/public
|
253
|
+
endif
|
254
|
+
|
255
|
+
ifdef MOZ_XPINSTALL
|
256
|
+
tier_50_dirs += xpinstall
|
257
|
+
endif
|
258
|
+
|
259
|
+
# JavaXPCOM JNI code is compiled into libXUL
|
260
|
+
ifdef MOZ_JAVAXPCOM
|
261
|
+
tier_50_dirs += extensions/java/xpcom/src
|
262
|
+
endif
|
263
|
+
|
264
|
+
ifdef MOZ_ENABLE_LIBXUL
|
265
|
+
tier_50_dirs += \
|
266
|
+
toolkit/library \
|
267
|
+
xpcom/stub \
|
268
|
+
$(NULL)
|
269
|
+
endif
|
270
|
+
|
271
|
+
ifdef NS_TRACE_MALLOC
|
272
|
+
tier_50_dirs += tools/trace-malloc
|
273
|
+
endif
|
274
|
+
|
275
|
+
ifdef MOZ_PSM
|
276
|
+
tier_50_dirs += security/manager
|
277
|
+
else
|
278
|
+
tier_50_dirs += security/manager/boot/public security/manager/ssl/public
|
279
|
+
endif
|
280
|
+
|
281
|
+
ifdef MOZ_LDAP_XPCOM
|
282
|
+
tier_50_dirs += directory/xpcom
|
283
|
+
endif
|
284
|
+
|
285
|
+
ifndef MINIMO
|
286
|
+
ifdef MOZ_XUL_APP
|
287
|
+
ifdef MOZ_ENABLE_GTK2
|
288
|
+
tier_50_dirs += toolkit/components/gnome
|
289
|
+
endif
|
290
|
+
endif
|
291
|
+
endif
|
292
|
+
|
293
|
+
ifdef MOZ_LEAKY
|
294
|
+
tier_50_dirs += tools/leaky
|
295
|
+
endif
|
296
|
+
|
297
|
+
ifdef MOZ_MAPINFO
|
298
|
+
tier_50_dirs += tools/codesighs
|
299
|
+
endif
|
300
|
+
|
301
|
+
#
|
302
|
+
# tier 99 - application features
|
303
|
+
#
|
304
|
+
|
305
|
+
ifdef MOZ_MAIL_NEWS
|
306
|
+
tier_99_dirs += mailnews
|
307
|
+
endif
|
308
|
+
|
309
|
+
ifdef MOZ_CALENDAR
|
310
|
+
tier_99_dirs += calendar
|
311
|
+
endif
|
312
|
+
|
313
|
+
ifdef MOZ_EXTENSIONS
|
314
|
+
tier_99_dirs += extensions
|
315
|
+
endif
|
316
|
+
|
317
|
+
ifdef MOZ_JAVAXPCOM
|
318
|
+
tier_99_dirs += extensions/java
|
319
|
+
endif
|
320
|
+
|
321
|
+
# axcontrol
|
322
|
+
ifeq ($(OS_ARCH),WINNT)
|
323
|
+
ifndef MOZ_NO_ACTIVEX_SUPPORT
|
324
|
+
tier_99_dirs += \
|
325
|
+
embedding/browser/activex/src/control \
|
326
|
+
embedding/browser/activex/src/control_kicker \
|
327
|
+
$(NULL)
|
328
|
+
endif
|
329
|
+
endif
|
330
|
+
|
331
|
+
# Java Embedding Plugin
|
332
|
+
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
333
|
+
tier_99_dirs += plugin/oji/JEP
|
334
|
+
endif
|
335
|
+
|
336
|
+
ifneq (,$(filter browser suite,$(MOZ_BUILD_APP)))
|
337
|
+
tier_99_dirs += xpfe/components/search
|
338
|
+
endif
|
339
|
+
|
340
|
+
ifdef MOZ_BRANDING_DIRECTORY
|
341
|
+
tier_99_dirs += $(MOZ_BRANDING_DIRECTORY)
|
342
|
+
endif
|
343
|
+
|
344
|
+
ifdef MOZ_PHOENIX
|
345
|
+
tier_99_dirs += browser xpfe/bootstrap/init.d
|
346
|
+
endif
|
347
|
+
|
348
|
+
ifdef MOZ_XULRUNNER
|
349
|
+
tier_99_dirs += xulrunner
|
350
|
+
endif
|
351
|
+
|
352
|
+
ifdef MOZ_COMPOSER
|
353
|
+
tier_99_dirs += editor/ui
|
354
|
+
endif
|
355
|
+
|
356
|
+
ifdef MOZ_THUNDERBIRD
|
357
|
+
tier_99_dirs += mail xpfe/bootstrap/init.d
|
358
|
+
endif
|
359
|
+
|
360
|
+
ifdef MOZ_STANDALONE_COMPOSER
|
361
|
+
tier_99_dirs += composer
|
362
|
+
endif
|
363
|
+
|
364
|
+
ifdef MOZ_SUNBIRD
|
365
|
+
tier_99_dirs += calendar/sunbird
|
366
|
+
endif
|
367
|
+
|
368
|
+
ifdef MOZ_SUITE
|
369
|
+
tier_99_dirs += suite
|
370
|
+
endif
|
371
|
+
|
372
|
+
ifdef MINIMO
|
373
|
+
tier_99_dirs += minimo
|
374
|
+
endif
|
375
|
+
|
376
|
+
ifdef MOZ_XUL_APP
|
377
|
+
ifdef MOZ_INSTALLER
|
378
|
+
tier_99_dirs += toolkit/mozapps/installer
|
379
|
+
endif
|
380
|
+
else
|
381
|
+
ifneq (,$(MOZ_XPFE_COMPONENTS)$(MOZ_XUL))
|
382
|
+
ifndef MINIMO
|
383
|
+
tier_99_dirs += xpfe/bootstrap
|
384
|
+
endif
|
385
|
+
endif
|
386
|
+
endif
|
387
|
+
|
388
|
+
ifneq (,$(MOZ_ENABLE_GTK)$(MOZ_ENABLE_GTK2))
|
389
|
+
tier_99_dirs += embedding/browser/gtk
|
390
|
+
endif
|
391
|
+
|
392
|
+
# viewer
|
393
|
+
ifneq (,$(ENABLE_TESTS))
|
394
|
+
ifndef MOZ_ENABLE_LIBXUL
|
395
|
+
tier_99_dirs += webshell/tests
|
396
|
+
endif
|
397
|
+
endif
|
398
|
+
|
399
|
+
# winembed, mfcembed
|
400
|
+
ifeq ($(OS_ARCH),WINNT)
|
401
|
+
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
402
|
+
tier_99_dirs += embedding/tests
|
403
|
+
endif
|
404
|
+
endif
|
405
|
+
|
406
|
+
# os2embed
|
407
|
+
ifeq ($(OS_ARCH),OS2)
|
408
|
+
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
409
|
+
tier_99_dirs += embedding/tests
|
410
|
+
endif
|
411
|
+
endif
|
412
|
+
|
413
|
+
ifeq ($(MOZ_BUILD_APP),macbrowser)
|
414
|
+
tier_99_dirs += \
|
415
|
+
embedding/config \
|
416
|
+
camino \
|
417
|
+
$(NULL)
|
418
|
+
endif
|
419
|
+
|
420
|
+
# test harnesses
|
421
|
+
ifdef ENABLE_TESTS
|
422
|
+
tier_99_dirs += tools/test-harness
|
423
|
+
endif
|
424
|
+
|
425
|
+
else
|
426
|
+
|
427
|
+
# Standalone build
|
428
|
+
|
429
|
+
DIRS = $(BUILD_MODULE_DIRS)
|
430
|
+
|
431
|
+
# Hack to generate xpidl Makefile
|
432
|
+
ifneq ($(BUILD_MODULES),all)
|
433
|
+
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
434
|
+
DIRS := xpcom/typelib $(DIRS)
|
435
|
+
SUBMAKEFILES := xpcom/typelib/Makefile
|
436
|
+
endif
|
437
|
+
endif
|
438
|
+
|
439
|
+
default:: $(SUBMAKEFILES)
|
440
|
+
$(MAKE) export
|
441
|
+
$(MAKE) libs
|
442
|
+
|
443
|
+
endif # BUILD_MODULES == all
|
444
|
+
|
445
|
+
STATIC_MAKEFILES := nsprpub directory/c-sdk security/nss
|
446
|
+
|
447
|
+
GARBAGE_DIRS += dist
|
448
|
+
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
449
|
+
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
450
|
+
unallmakefiles mozilla-config.h \
|
451
|
+
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
452
|
+
|
453
|
+
# Build pseudo-external modules first when export is explicitly called
|
454
|
+
export::
|
455
|
+
$(RM) -rf $(DIST)/sdk
|
456
|
+
$(MAKE) -C config export
|
457
|
+
$(MAKE) nspr
|
458
|
+
$(MAKE) ldap
|
459
|
+
ifneq ($(BUILD_MODULES),all)
|
460
|
+
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
461
|
+
$(MAKE) -C xpcom/typelib
|
462
|
+
$(MAKE) export-idl
|
463
|
+
endif
|
464
|
+
endif
|
465
|
+
|
466
|
+
install::
|
467
|
+
ifndef MOZ_NATIVE_NSPR
|
468
|
+
$(MAKE) -C nsprpub real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/nspr
|
469
|
+
$(RM) -f $(addprefix $(DESTDIR)$(mozappdir)/$(LIB_PREFIX), $(addsuffix .$(LIB_SUFFIX), nspr4 plds4 plc4))
|
470
|
+
$(RM) -f $(addprefix $(DESTDIR)$(bindir)/,nspr-config compile-et.pl prerr.properties)
|
471
|
+
endif
|
472
|
+
ifdef MOZ_LDAP_XPCOM
|
473
|
+
$(MAKE) -C directory/c-sdk real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/ldap
|
474
|
+
endif
|
475
|
+
|
476
|
+
include $(topsrcdir)/config/rules.mk
|
477
|
+
|
478
|
+
# Clean up after pseudo-external modules
|
479
|
+
clean clobber realclean clobber_all distclean::
|
480
|
+
ifndef MOZ_NATIVE_NSPR
|
481
|
+
$(MAKE) -C nsprpub $@
|
482
|
+
endif
|
483
|
+
ifdef MOZ_LDAP_XPCOM
|
484
|
+
$(MAKE) -C directory/c-sdk $@
|
485
|
+
endif
|
486
|
+
|
487
|
+
# Map mozilla targets to standard automake target
|
488
|
+
ifdef MOZ_ENABLE_LIBXUL
|
489
|
+
tier_50: $(addsuffix /Makefile, $(filter-out $(STATIC_MAKEFILES), $($@_dirs)))
|
490
|
+
@echo "tier_50: $(tier_50_dirs)"
|
491
|
+
@$(EXIT_ON_ERROR) \
|
492
|
+
for d in $(tier_50_dirs); do \
|
493
|
+
$(UPDATE_TITLE) \
|
494
|
+
if test ! -f $$d/Makefile; then \
|
495
|
+
$(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $(CYGWIN_TOPSRCDIR) $$d/Makefile; \
|
496
|
+
fi; \
|
497
|
+
$(MAKE) -C $$d export; \
|
498
|
+
done ; \
|
499
|
+
for d in $(tier_50_dirs); do \
|
500
|
+
$(UPDATE_TITLE) \
|
501
|
+
$(MAKE) -C $$d libs; \
|
502
|
+
done
|
503
|
+
@echo "Building tools from tier 2/9/50"
|
504
|
+
@$(EXIT_ON_ERROR) \
|
505
|
+
for d in $(tier_2_dirs) $(tier_9_dirs) $(tier_50_dirs); do \
|
506
|
+
$(UPDATE_TITLE) \
|
507
|
+
$(MAKE) -C $$d tools; \
|
508
|
+
done;
|
509
|
+
endif
|
510
|
+
|
511
|
+
tier_%:
|
512
|
+
@echo "$@: $($@_dirs)"
|
513
|
+
@$(EXIT_ON_ERROR) \
|
514
|
+
for d in $($@_dirs); do \
|
515
|
+
$(UPDATE_TITLE) \
|
516
|
+
if test ! -f $$d/Makefile; then \
|
517
|
+
$(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $(CYGWIN_TOPSRCDIR) $$d/Makefile; \
|
518
|
+
fi; \
|
519
|
+
$(MAKE) -C $$d export; \
|
520
|
+
done ; \
|
521
|
+
for d in $($@_dirs); do $(UPDATE_TITLE) \
|
522
|
+
$(MAKE) -C $$d libs; \
|
523
|
+
done
|
524
|
+
|
525
|
+
#
|
526
|
+
# Individual modules
|
527
|
+
#
|
528
|
+
boehm:
|
529
|
+
ifdef GC_LEAK_DETECTOR
|
530
|
+
$(MAKE) -C gc/boehm
|
531
|
+
endif
|
532
|
+
|
533
|
+
nspr: boehm
|
534
|
+
ifndef MOZ_NATIVE_NSPR
|
535
|
+
$(MAKE) -C nsprpub
|
536
|
+
endif
|
537
|
+
|
538
|
+
ldap:
|
539
|
+
ifdef MOZ_LDAP_XPCOM
|
540
|
+
$(MAKE) -C directory/c-sdk
|
541
|
+
endif
|
542
|
+
|
543
|
+
distclean::
|
544
|
+
cat unallmakefiles | $(XARGS) rm -f
|
545
|
+
rm -f unallmakefiles $(DIST_GARBAGE)
|
546
|
+
|
547
|
+
ifeq ($(OS_ARCH),WINNT)
|
548
|
+
rebase:
|
549
|
+
ifdef MOZILLA_OFFICIAL
|
550
|
+
echo rebasing $(DIST)
|
551
|
+
/bin/find $(DIST) -name "*.dll" > rebase.lst
|
552
|
+
rebase -b 60000000 -R . -G rebase.lst
|
553
|
+
rm rebase.lst
|
554
|
+
endif
|
555
|
+
|
556
|
+
splitsymbols:
|
557
|
+
ifdef MOZILLA_OFFICIAL
|
558
|
+
ifdef MOZ_DEBUG_SYMBOLS
|
559
|
+
echo finding pdb files
|
560
|
+
mkdir -p $(DIST)/$(BUILDID)
|
561
|
+
-cp `/bin/find . -path "./dist" -prune -o -name "*.dll" | sed "s/\.dll$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
562
|
+
-cp `/bin/find . -path "./dist" -prune -o -name "*.exe" | sed "s/\.exe$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
563
|
+
-cp `/bin/find . -path "./dist" -prune -o -name "*.EXE" | sed "s/\.EXE$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
564
|
+
endif # MOZ_DEBUG_SYMBOLS
|
565
|
+
ifdef MOZ_PROFILE
|
566
|
+
echo splitting symbols out of binaries
|
567
|
+
/bin/find $(DIST) -name "*.dll" -exec splitsym {} \;
|
568
|
+
/bin/find $(DIST) -name "*.exe" -exec splitsym {} \;
|
569
|
+
/bin/find $(DIST) -name "*.EXE" -exec splitsym {} \;
|
570
|
+
mkdir -p $(DIST)/$(BUILDID)
|
571
|
+
/bin/find $(DIST) -name "*.dbg" -exec mv {} $(DIST)/$(BUILDID) \;
|
572
|
+
endif # MOZ_PROFILE
|
573
|
+
endif # MOZILLA_OFFICIAL
|
574
|
+
|
575
|
+
signnss:
|
576
|
+
ifdef MOZILLA_OFFICIAL
|
577
|
+
echo signing NSS libs
|
578
|
+
cd $(DIST)/bin; ./shlibsign.exe -v -i softokn3.dll
|
579
|
+
cd $(DIST)/bin; ./shlibsign.exe -v -i freebl3.dll
|
580
|
+
endif # MOZILLA_OFFICIAL
|
581
|
+
|
582
|
+
BUILDID = $(shell cat $(DEPTH)/config/build_number)
|
583
|
+
deliver: splitsymbols rebase signnss
|
584
|
+
|
585
|
+
endif # WINNT
|
586
|
+
|