From a065e04d529da1d847b5062a12c46d916408bf32 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 21:46:22 -0500 Subject: update based on https://github.com/mdn/yari/issues/2028 --- files/ru/gecko_sdk/index.html | 110 ------------------------------------------ 1 file changed, 110 deletions(-) delete mode 100644 files/ru/gecko_sdk/index.html (limited to 'files/ru/gecko_sdk/index.html') diff --git a/files/ru/gecko_sdk/index.html b/files/ru/gecko_sdk/index.html deleted file mode 100644 index 0a94f3412a..0000000000 --- a/files/ru/gecko_sdk/index.html +++ /dev/null @@ -1,110 +0,0 @@ ---- -title: Gecko SDK -slug: Gecko_SDK -translation_of: Mozilla/Gecko/Gecko_SDK ---- -

Overview

-

Gecko SDK, также известный как XULRunner SDK, представляет собой набор XPIDL файлов, заголовочных файлов и инструментов для разработки XPCOM компонентов, которые могут в свою очередь, например, быть доступны из XUL с использованием JavaScript.

-

Note that in order to develop such components, you do not need the full sources of e.g. Firefox, since you do not access parts of the front end from within a component. Furthermore, since a component contains basic functionality, it is intended to run with every product of the Mozilla platform. Therefore it makes no sense to use a particular product to build general functionality. That's the reason why the Gecko SDK was devised.

-

Do not confuse the Gecko/XULRunner SDK with XULRunner itself. The Gecko SDK is a collection of header files and tools used to develop general XPCOM components which add functionality to the existing platform, whereas XULRunner is a framework which can be used to run standalone or embedded applications based on the Mozilla framework.

-

The Gecko SDK contains all of the necessary tools and headers for making scriptable NPAPI plugins including the xpidl compiler/linker and the latest npapi.h.

-

Get the SDK

-

Updates

-

There is no need to download or rebuild the Gecko SDK corresponding to security updates of Mozilla (e.g., Mozilla 1.7.3) since the headers and glue libs in the Gecko SDK are usually not changed as a result of security updates. You do have to get and distribute the newest Gecko components (gklayout.dll etc.), though.

-

Downloading

-

For Gecko versions before 2.0, you should choose the Gecko SDK version for the earliest version of Mozilla you wish to target.  For Gecko versions 2.0 and higher, you must recompile your component for each release as cross-version compatibility is no longer supported.

-

In addition to the below versions, you can find other versions (including Beta) here: Xulrunner Releases (files include "sdk" in the name).  The SDK follows the same release schedule as Firefox/Thunderbird.  Once the SDK enters Beta, it is suitable for building extensions; your component should work with release builds of the SDK without any modifications.  Due to the Rapid Release process, it may be a good idea to target the SDK in Beta.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Download LinkGecko 18.0.1 (Firefox 18.0.1)Gecko 1.9.2 (Firefox 3.6)Gecko 1.9.1 (Firefox 3.5)Gecko 1.9 (Firefox 3.0)Gecko 1.8 (Firefox 1.5 and 2.0)
WindowsDownloadDownloadDownloadDownloadDownload
Mac x86_64DownloadN/AN/AN/AN/A
Mac i386DownloadDownloadDownloadDownloadN/A
Mac ppcN/ADownloadDownloadDownloadDownload
Linux x86_64DownloadN/AN/AN/AN/A
Linux i686DownloadDownloadDownloadDownloadDownload
-

The SDK is not officially released for other platforms; if you need it, you will probably need to build it yourself.

-

Unpack the SDK tarball to some suitable location.

-

Issues with the OS X SDK

-

If you need to use the xpidl utility to compile IDL files on OS X, it's likely that you will receive a strange error when running the tool that looks something along the lines of this:

-
dyld: Library not loaded: /opt/local/lib/libintl.3.dylib
-  Referenced from: /Users/varmaa/xulrunner-sdk/bin/./xpidl
-  Reason: image not found
-Trace/BPT trap
-
-

Unfortunately, this is caused by a problem with the SDK build process which cannot currently be resolved (see Bugzilla bug #430274). To get around it, you'll need to first install MacPorts as outlined in the Mac OS X Build Prerequisites and install libidl with it. On 64-bit versions of Mac OS X, you'll need to install libidl with the +universal flag.

-

Once that's done, you should perform the following command:

-
ln -s /opt/local/lib/libintl.8.dylib /opt/local/lib/libintl.3.dylib
-

This should fix the problem.

-

Building the SDK

-

To build the SDK, you should build XULRunner (the Gecko SDK is built as part of the XULRunner build process, which is why it's sometimes called the XULRunner SDK). See the Build Documentation for complete details. After the XULRunner build is complete running make sdk from your object directory will create a package of the sdk in dist.

-

Contents of the SDK

-

The SDK contains the following:

- -

For more information about safely linking XPCOM components using the XPCOM "glue" library, see XPCOM Glue.

-

Using the Mozilla Build System with the SDK

-

It's possible to use the Mozilla Build System with the SDK. This can be done by downloading the source code for Firefox and using the --with-libxul-sdk option to configure.

-

Resources

- -

{{ languages( { "zh-cn": "cn/Gecko_SDK", "fr": "fr/SDK_Gecko", "ja": "ja/Gecko_SDK" } ) }}

-- cgit v1.2.3-54-g00ecf