Search completed in 1.20 seconds.
6 results for "vpath":
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
Archive › Add-ons › Creating Custom Firefox Extensions with the Mozilla Build System
reate a new extension, rather than copying the components directly into Firefox's binary directory. The main advantage of using an extension is that it is easy to package everything up and install it on another machine. So here's your basic, plain-vanilla top-level makefile (Makefile.in in the main extension directory): DEPTH = ../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = myextension DIRS = public src XPI_NAME = myextension INSTALL_EXTENSION_ID = myextension@mycompany.com XPI_PKGNAME = myextension DIST_FILES = install.rdf include $(topsrcdir)/config/rules.mk A detailed description of the make process, describing the key features of this makefile, can be found here. MODULE...
...I would discourage this practice (among other things, static linking means the same code gets loaded more than once into memory, and the code won't be available from JavaScript or other non-C++ languages) and encourage the use of XPCOM wherever possible. The makefile in the public/ directory should follow this model: DEPTH = ../../.. ...
...illa/$(MOZ_OBJDIR)/dist/include/. It contains stubs for the component .H and .CPP files that you can copy and paste into your implementation files. All you have to do is fill in the implementation stubs in the C++ file and you're good to go. Here's an example of the makefile you need to place into your src directory: DEPTH = ../../.. ...
...And 3 more matches
How Mozilla's build system works
Mozilla › Developer guide › Build Instructions › How Mozilla s build system works
is document but is available here. One concept you will need be familiar with is variables in make. Variables are defined by the syntax VARIABLE = VALUE, and the value of a variable is referenced by writing $(VARIABLE). All variables are strings. All Makefile.in files in Mozilla have the same basic format: DEPTH = ../../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk # ... Main body of makefile goes here ... include $(topsrcdir)/config/rules.mk # ... Additional rules go here ... The DEPTH variable should be set to the relative path from your Makefile.in to the top-level Mozilla directory. topsrcdir is substituted in by configure and points to the top-level Mozilla directory. srcdir is also s...
... here ... The DEPTH variable should be set to the relative path from your Makefile.in to the top-level Mozilla directory. topsrcdir is substituted in by configure and points to the top-level Mozilla directory. srcdir is also substituted in by configure and points to the source directory for the current directory. In source tree builds, this will simply point to "." (the current directory). VPATH is a list of directories where make will look for prerequisites (i.e., source files). One other frequently used variable not specific to a particular build target is DIRS. DIRS is a list of subdirectories of the current directory to recursively build in. Subdirectories are traversed after their parent directories. For example, you could have: DIRS = \ public \ resources \ src \ $(NULL)...
...ibraries A non-component shared library is useful when there is common code that several components need to share and sharing it through XPCOM is not appropriate or not possible. As an example, below is a portion of the makefile for libmsgbaseutil, which is linked against by all of the main news components: DEPTH = ../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = msgbaseutil LIBRARY_NAME = msgbaseutil EXPORT_LIBRARY = 1 SHORT_LIBNAME = msgbsutl Notice that the only change from the component example above is that IS_COMPONENT is not set. When this is not set, a shared library will be created and installed to dist/bin. Static libraries As mentioned above, static libra...
...And 3 more matches
Using Dependent Libraries In Extension Components - Archive of obsolete content
Archive › Add-ons › Using Dependent Libraries In Extension Components
ies/dependent1.dll extension-directory/libraries/dependent2.dll extension-directory/libraries/component.dll extension-directory/components/interface1.xpt extension-directory/components/interface2.xpt extension-directory/components/bsmedberg_stub.dll extensions/stub/Makefile.in # Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> DEPTH = ../.. ...
Standard Makefile Header - Archive of obsolete content
Archive › Mozilla › Standard Makefile Header
Each Mozilla makefile uses a standard header. ...
Using LDAP XPCOM with XULRunner - Archive of obsolete content
Archive › Mozilla › XULRunner › LDAP XPCOM
the component library is just a loader of the real library and all its dependencies, so as all the needed libraries are loaded. Create a subdirectory extensions/ldapstub in the mozilla source code directory, containing two files, Makefile.in and LDAPStubLoader.cpp: Makefile.in: # Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> DEPTH = ../.. ...
How to build an XPCOM component in JavaScript
Mozilla › Tech › XPCOM › Guide › Building components in JavaScript
pository, you can create a Makefile listing the IDL files and the build system will automatically generate the typelib. A sample Makefile.in # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. ...