{"id":89,"date":"2006-03-27T15:55:39","date_gmt":"2006-03-27T19:55:39","guid":{"rendered":"http:\/\/benjamin.smedbergs.us\/blog\/2006-03-27\/building-the-xulrunner-sdk\/"},"modified":"2006-08-04T15:24:52","modified_gmt":"2006-08-04T19:24:52","slug":"building-the-xulrunner-sdk","status":"publish","type":"post","link":"http:\/\/benjamin.smedbergs.us\/blog\/2006-03-27\/building-the-xulrunner-sdk\/","title":{"rendered":"Building the XULRunner SDK"},"content":{"rendered":"<p>Part of the XULRunner planning is not only to release builds of the XULRunner runtime platform, but also to produce and release a set of developer tools, which for lack of a better name I have been calling the XULRunner SDK, or XDK for short.<\/p>\n<p>Several characteristics distinguish the XULRunner SDK from the currently released Mozilla SDK packages:<!--more--><\/p>\n<ul>\n<li>In addition to headers and import libraries for the frozen APIs exposed by the Mozilla platform, the XDK will contain headers for non-frozen interfaces. These headers will be segregated in a way that makes it clear to developers that they are using nonfrozen APIs.<\/li>\n<li>The XDK will provide tools to aid in the development, debugging, testing, and deployment of applications that use the Mozilla platform. This includes extensions and XULRunner applications, as well as embedding applications. The goal is to make use of existing projects and tools as much as possible. Potential tools that may be included include:<\/li>\n<ul>\n<li>A build system which can be used to package extensions and XULrunner-based applications from sources<\/li>\n<li>Deployment tools which can be used to create installers for XULRunner-based applications.<\/li>\n<li>Debugging tools such as DOM Inspector, a JavaScript debugger, and leak-detection tools.<\/li>\n<li>Localization tools<\/li>\n<\/ul>\n<\/ul>\n<p>I am now in the process of implementing the build system which will be used to produce the XDK. My basic strategy is to package the XDK by tarring up the dist\/ directory from a XULRunner build, just as the XULRunner runtime itself is packaged from the dist\/bin directory. In order for this strategy to be reasonable, several things need to happen:<\/p>\n<ul>\n<li>The dist\/lib directory structure needs to be cleaned out. That directory should only contain static libs and import libs that will be used by embedders. All of the shared libraries that are currently installed to dist\/lib as well as dist\/bin will only be installed to dist\/bin. All the intermediate static libraries that are currently installed to dist\/lib will not be installed and will instead be referenced from their in-tree location.<\/li>\n<li>The dist\/include directory structure needs to be cleaned out. Headers which are only meant for internal use will be removed from the EXPORTS section of makefiles and will either be referenced from their in-tree locations or will be installed to module-specific locations (think \/layout\/include).<\/li>\n<li>The dist\/bin directory needs to be cleaned out. Currently tests and other files are installed to dist\/bin. These tests and other files will be installed to other locations as appropriate.<\/li>\n<\/ul>\n<p>I would like some feedback on this proposal, especially as it affects RPM packages and Linux distributions. My current idea for RPM structures would look like this:<\/p>\n<ul>\n<li>XULRunner-1.9 RPM<br \/>\nships the contents of dist\/bin to \/usr\/lib\/xulrunner-1.9<\/li>\n<li>XULRunner-dev-1.9 RPM<br \/>\ndepends on XULRunner-1.9<br \/>\nships the contents of dist to \/usr\/lib\/xulrunner-1.9-dev<br \/>\n\/usr\/lib\/xulrunner-1.9-dev\/bin is a symlink to \/usr\/lib\/xulrunner-1.9 (to avoid having to ship two copies of the XULRunner runtime)<\/li>\n<\/ul>\n<p>Yes, I know that this structure is a bit nonstandand and it would be slightly more unix-like to ship the headers to \/usr\/include\/xulrunner-1.9. But I think it&#8217;s important to keep the structure, so that the mozilla build system can be used &#8211;with-libxul-sdk=\/usr\/lib\/xulrunner-1.9-dev and have everything &#8220;just work&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part of the XULRunner planning is not only to release builds of the XULRunner runtime platform, but also to produce and release a set of developer tools, which for lack of a better name I have been calling the XULRunner SDK, or XDK for short. Several characteristics distinguish the XULRunner SDK from the currently released [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[10],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-mozilla","tag-xulrunner"],"_links":{"self":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}