Commit Graph

151 Commits

Author SHA1 Message Date
Mike Hommey
d667f4bb59 Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.

Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.

Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Mike Hommey
6bcd36f9cd Bug 1077148 part 3 - Do not link PrimitiveTest, SimpleTypeLib, TestAUSHelper, TestAUSReadStrings and screentopng against mozglue on Linux. r=gps
There is no reason these should be linked to mozglue on Linux only. This
makes the intent clearer for the related changes in part 4.
2014-10-30 13:06:04 +09:00
Mike Hommey
30febd13b1 Bug 1081000 - Build xpt tests without a dependency on xul, mozalloc and mozglue. r=bsmedberg 2014-10-14 07:14:13 +09:00
Mike Hommey
6258dd8523 Bug 1059090 - Don't require SOURCES to be set for CPP_UNIT_TESTS and SIMPLE_PROGRAMS. r=mshal 2014-09-03 14:16:37 +09:00
Mike Hommey
fc99c53ae5 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Ms2ger
f5a6e98287 Bug 1044657 - Move PYTHON_UNIT_TESTS to moz.build; r=mshal
As a first step, this moves PYTHON_UNIT_TESTS to moz.build as a passthru
variable. In the future, we could hook it up to |mach test|.

The __init__.py files may not need to be in the list, but I don't want to
change the list here.
2014-07-28 17:51:12 +02:00
Mike Hommey
ad9b49263a Bug 1041936 part 2 - Directly use the static library "xul" to link into "xul-gtest" instead of having an intermediate library "xul" used by "xul-shared" and "xul-gtest". r=gps 2014-07-23 13:33:09 +09:00
Mike Hommey
e5c43ef995 Bug 1036894 part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. r=gps 2014-07-23 13:30:52 +09:00
Mike Hommey
d10b15b035 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Nathan Froyd
d1d52d93ee Bug 1031352 - move most of the _MSC_VER references in Makefile.in to moz.build; r=glandium 2014-06-27 10:32:05 -04:00
Birunthan Mohanathas
d9e98ea58a Bug 1028557 - Part 3: Flatten xpcom/typelib/xpt/{public,src}/ directories. r=khuey
--HG--
rename : xpcom/typelib/xpt/src/Makefile.in => xpcom/typelib/xpt/Makefile.in
rename : xpcom/typelib/xpt/src/xpt_arena.cpp => xpcom/typelib/xpt/xpt_arena.cpp
rename : xpcom/typelib/xpt/public/xpt_arena.h => xpcom/typelib/xpt/xpt_arena.h
rename : xpcom/typelib/xpt/src/xpt_struct.cpp => xpcom/typelib/xpt/xpt_struct.cpp
rename : xpcom/typelib/xpt/public/xpt_struct.h => xpcom/typelib/xpt/xpt_struct.h
rename : xpcom/typelib/xpt/src/xpt_xdr.cpp => xpcom/typelib/xpt/xpt_xdr.cpp
rename : xpcom/typelib/xpt/public/xpt_xdr.h => xpcom/typelib/xpt/xpt_xdr.h
2014-06-30 08:39:46 -07:00
Nathan Froyd
299b9aee87 Bug 996061 - part 4 - throw away unscriptable interfaces that aren't otherwise needed; r=ted 2014-04-15 14:41:08 -04:00
Nathan Froyd
94bb6d69ae Bug 996061 - part 0 - make tests use [scriptable] interfaces; r=ted
Smart xpt linking will keep around [scriptable] interfaces and anything
those interfaces depend on.  Modify the tests that deal with xpt linking
so they use [scriptable] interfaces, ensuring that the tests continue to
work in the face of smarter linkers.
2014-05-19 12:35:21 -04:00
Chris Peterson
92df38d44e Bug 1007525 - Mark xpcom/typelib/xpt/ as FAIL_ON_WARNINGS. r=bholley 2014-05-07 19:53:49 -07:00
Ehsan Akhgari
958ae15e31 Bug 994964 - Make DOM XPIDL interfaces non-scriptable, and add shim Components.interfaces entries for them; r=bzbarsky,bholley 2014-05-08 16:45:36 -04:00
Chris Peterson
c7e6ac0c67 Bug 1006998 - Fix -Wdeprecated-writable-strings warnings by const-correcting typelib/xpt code. r=bholley 2014-05-05 21:40:06 -07:00
Ehsan Akhgari
4b2590958a Bug 1005321 follow-up: fix the link error on Windows 2014-05-05 20:39:46 -04:00
Ehsan Akhgari
960e39897a Bug 1005321 - Convert the xpt code to C++; r=bholley
--HG--
rename : xpcom/typelib/xpt/src/xpt_arena.c => xpcom/typelib/xpt/src/xpt_arena.cpp
rename : xpcom/typelib/xpt/src/xpt_struct.c => xpcom/typelib/xpt/src/xpt_struct.cpp
rename : xpcom/typelib/xpt/src/xpt_xdr.c => xpcom/typelib/xpt/src/xpt_xdr.cpp
rename : xpcom/typelib/xpt/tests/PrimitiveTest.c => xpcom/typelib/xpt/tests/PrimitiveTest.cpp
rename : xpcom/typelib/xpt/tests/SimpleTypeLib.c => xpcom/typelib/xpt/tests/SimpleTypeLib.cpp
2014-05-05 19:52:09 -04:00
Ehsan Akhgari
741e1ab301 Bug 973388 - Move the LOCAL_INCLUDES in xpcom to moz.build; r=glandium 2014-02-18 09:01:06 -05:00
Ehsan Akhgari
5850c6bcff Bug 936912 - Build xpcom in unified mode; r=froydnj 2013-11-18 21:34:00 -05:00
Mike Hommey
8ceb917350 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
bb6779efe3 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
d7b6f95761 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Mike Hommey
d8d527c143 Bug 937359 - Make all objects built into xul.dll built with -MD/-MDd, not -MT/-MTd. r=bsmedberg
--HG--
rename : toolkit/mozapps/update/common/Makefile.in => toolkit/mozapps/update/common-standalone/Makefile.in
2013-11-16 13:37:56 +09:00
Mike Hommey
ff4fa14954 Bug 933135 - Treat SIMPLE_PROGRAMS more like PROGRAM. r=mshal 2013-11-02 08:43:55 +09:00
Mike Hommey
1d566f7586 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Mike Hommey
cf3407e3e6 Bug 927775 - Cleanup xpcom/typelib/xpt/tools/Makefile.in. r=mshal 2013-10-22 10:02:49 +09:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Ms2ger
d62e2c8439 Bug 906619 - Part a: Move unconditional CSRCS to moz.build; r=mshal 2013-08-22 08:56:02 +02:00
Ms2ger
c3e345584c Bug 883284 - Part f: Move LIBXUL_LIBRARY into moz.build (p-z); r=glandium 2013-08-22 08:56:01 +02:00
Ms2ger
93933b0de8 Bug 897909 - Cleanup some SIMPLE_PROGRAMS; r=gps
* * *
FOLD
2013-08-14 09:00:13 +02:00
Trevor Saunders
1dd775a5cf bug 900330 - part 1 rm xpcom/typelib/xpidl/ r=ted 2013-08-02 23:30:09 -04:00
Trevor Saunders
b13af92c34 bug 900330 - part 0 clean up xpcom/typelib/xpt/src/Makefile.in r=ted
we don't need to build the C xpt code before idl parsing anymore so change to
 compile it during libs
2013-08-02 14:06:02 -04:00
Ehsan Akhgari
9854ac6166 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Benoit Girard
5b43ee14ca Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium 2013-07-12 08:56:54 -04:00
Catalin Iacob
de67aac0eb Bug 798914 (part 3) - Use newly introduced MozMallocSizeOf in xpt. r=njn.
--HG--
extra : rebase_source : 6c3d707727bd1448acb26317cab2c64c82aa896c
2013-06-20 21:17:44 +02:00
Brian O'Keefe
5f8b5163e8 Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Joey Armstrong
e7afc73381 bug 872086: move SIMPLE_PROGRAMS to moz.build (file batch #1) r=mshal 2013-06-13 12:02:02 -04:00
Gregory Szorc
14c4938355 Bug 873629 - Remove 129 empty Makefile.in files; r=ted 2013-05-17 16:20:11 -07:00
Mike Shal
77cdb6567d Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Nathan Froyd
2de8456c06 Bug 859367 - make xpt.py use unpack_from instead of unpack; r=ted 2013-04-08 12:32:22 -04:00
Kyle Machulis
5aa83c3e11 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Gregory Szorc
09e7b06723 Bug 844654 - Part 3: Remove now empty Makefile.in files; rs=khuey
--HG--
extra : rebase_source : 8de9c7f68a953e574dda22f8c14c2b2ca60444f9
2013-03-19 18:49:07 -07:00
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Ed Morley
1871f57fe3 Backed out changeset 0f012ef3d3ac (bug 809978) for landing after being given r- 2013-03-19 17:21:01 +00:00
Joey Armstrong
41afca41cb bug 809978: retry link I/O on potential race conditions 2013-03-19 12:26:57 -04:00
Gregory Szorc
a8e6b873d4 Bug 784841 - Part 18ν: Convert /xpcom; f=Ms2ger rs=ted 2013-02-25 13:20:02 -08:00
Masatoshi Kimura
b18db0e9e8 Bug 795433 - Use #define for nsresult values in C code. r=ehsan,glandium; feedback=njn 2013-01-05 12:55:22 +09:00