518 Commits

Author SHA1 Message Date
Tor Lillqvist
12603f99db Use the same parameters to native-code.py as in TiledLibreOffice
Change-Id: If3c95562e292cb44bf9eb2de39dc66100a6fd066
2014-01-01 18:39:01 +02:00
Tor Lillqvist
cec1697095 Need to have native-code.cxx as a separate file for the LibreOffice app
The executable of the LibreOffice app (which as such at the moment
doesn't work, since the tiled rendering changes) is built using
gbuild, and thus we can't generate the native-code snippet in the
CustomTarget that builds the app bundle, but need it already when
building the executable. This is one wayt to handle that.

Change-Id: Ifdab40c970e93b1f2608cefc637df8a8e5396efe
2014-01-01 18:37:07 +02:00
Matúš Kukan
645fb66bbd Use native-code.py generated code also for iOS.
This allows us to get rid of component-declarations.h and
simplify component-mapping.h.
For new, converted, implementation_getFactories, adding one line into
native-code.py should be enough to make them available in application.

Change-Id: I042320e5b7f8a9aa9f02b77d2bdd07cf9a690ee6
2014-01-01 17:33:29 +02:00
Tor Lillqvist
1c7ea4668d OSL_DEBUG_LEVEL is defined in the flags in lo.xcconfig
Change-Id: If35f0407e40bfeade9c2a342e509ef5e84306f53
2013-12-28 16:31:38 +02:00
Tor Lillqvist
0324a62e19 Add source files from bridges for quicker breakpoint setting
Change-Id: I7842d9d0e5786647d14d0c30be5230c05883ada2
2013-12-23 12:59:05 +02:00
Tor Lillqvist
5355fcc367 Describe the apps
Change-Id: If07fe2ddc99bf2d2a9a4bc242be22fe615a5b1f9
2013-12-23 12:59:04 +02:00
Tor Lillqvist
ee7689d052 We seem to need lo.xcconfig here, too
Change-Id: I7db16b3736a83b9372aba11ac9ff302bc087e008
2013-12-23 12:59:04 +02:00
Tor Lillqvist
4a86b0f301 Add arm64 to VALID_ARCHS
Change-Id: Ibf1ed5ee1d7ab8319b393475c49655708e9a6d61
2013-12-23 12:59:04 +02:00
Andras Timar
5bf9565fb7 restore this binary file
Change-Id: I6e0d16fc260e609f1103947afb03c1640dc1a908
2013-12-20 16:17:33 +01:00
Andras Timar
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
Tor Lillqvist
5ed55393ee Don't need Base, Calc, Draw and Math functionality here for now
Change-Id: I20b9325f9c7eed1e49ea815c284f8fe1a6ed428d
2013-12-20 12:32:09 +02:00
Tor Lillqvist
b8a1af35cc Improve the tiles per second calculation
Avoid an implicit upper limit on the value calculated (and displayed) by
keeping a counter, too, for each slot in the array.

Also edit a comment, as I now have a better understanding of how the
tiling works.

Change-Id: I5df4076917a244f73f27b66f4983f17ce95b9df7
2013-12-20 10:52:45 +02:00
Tor Lillqvist
4cae6fa29a Add tiles per second counter (averaged over last five seconds)
Change-Id: I11e282c1a72dbc6b41a5a89229065983b41eb65b
2013-12-20 02:00:18 +02:00
Tor Lillqvist
969bd8aa73 Use embedded DWARF in the iOS apps except for in release build
Running dsymutil takes much too long to be bearable during
development. But when building for actual release we do want a
separate dSYM of course. (Of course none of the current iOS apps in
the source are intended to be actually "released". But add this logic
just for completeness.)

Change-Id: Ibb5037d6926e969a891269d6c9d86232bc01cb3c
2013-12-19 23:28:33 +02:00
Tor Lillqvist
7f02e47111 Further minor tweaks to TiledLibreOffice
Change-Id: If1c1bbaadf8866605bf1026c4a71da0a397391a4
2013-12-19 21:58:59 +02:00
Matúš Kukan
645dac2f94 Deduplicate more components.
No one says this is the only good classification.
Quite possibly it's not even a good one, but at least something.

Change-Id: I81178314222f9f63708a83b262ff8ef73a1d9467
2013-12-19 15:34:33 +01:00
Matúš Kukan
6275751f63 fix typo
Change-Id: I52bbae367d1b4a76aa5507daa38582f7c97d794d
2013-12-19 15:34:32 +01:00
Matúš Kukan
43e2cf590a Deduplicate calc components.
Hopefully it makes sense, I don't know.
Inspired by Debian packages.

Change-Id: I8caf2d4aa75b8f6de3cc7da9eb293955a4ed58d8
2013-12-19 15:34:32 +01:00
Matúš Kukan
8f9c0fe459 bin few comments
It's not a good way to add invidual components.
We aim to create some groups of them.

Change-Id: I752c2b01c1c800d3eb446403ff7fc9e6da3aa635
2013-12-19 15:34:31 +01:00
Matúš Kukan
e05e58948c Deduplicate writer component factories.
Change-Id: I0b82e8a284f871829b7c22a654d61534b5c5a3cc
2013-12-19 15:34:30 +01:00
Matúš Kukan
ad4e451070 Deduplicate a lot of common components.
Change-Id: Ic3eb95119eed7a691c9cd0c677f28c87395b9415
2013-12-19 09:41:45 +01:00
Stephan Bergmann
ae3a0c8da5 Add .component <implementation constructor="..." feature
...to directly call constructor functions of ComponentContext-based C++
implementations of (non-single-instance) UNO services.  The case where these
calls would need to be bridged across different environments (e.g., from gcc3
to gcc3:affine) is not yet implemented.

bootstrap.component and expwrap.component are adapted accordingly as a proof-of-
concept (which had previously been adapted to use the prefix="direct" feature,
which may become unnecessary again in the end, depending on how to handle
single-instance services/singletons).  More to follow.

Change-Id: I18682d75bcd29d3d427e31331b4ce8161dbb846d
2013-12-19 08:48:56 +01:00
Tor Lillqvist
2753bc1eff Adapt TiledLibreOffice to the new library name to component mapping API
Change-Id: I96e2931763c277d72ff1bb7ebdf5b71c0d6e091b
2013-12-19 00:16:31 +02:00
Tor Lillqvist
48f625b899 Add a view-only iOS test app using tiled rendering
I had to add some horrible hacks to make sure the test doc has been
loaded into a Writer shell before retrieving its size and being able
to render it. Obviously some better solution is needed. But this is
just a testbed to get some profiling data.

The app is built using an Xcode project, and in gbuild through a
custom target based on the MobileLibreOffice one. Setting up the
various files used (or not used...) at run-time should really be
factored out from the CustomTarget files.

Change-Id: I1711b0cae9d28a09b73476b2d37d98b1820c9943
2013-12-18 22:59:23 +02:00
Matúš Kukan
d8bbae2fd6 Get more --disable-dynamic-loading code out of shlib.cxx.
It's not terribly nice, but, hopefully, better.
The hope is that one day, lo_get_library_map will be no more.
In lo_get_implementation_map we can specify more precisely what to link
into the binary.

Change-Id: I99a1854fbae05be2f70302cc56bea88e522ec129
2013-12-18 07:15:49 +01:00
Matúš Kukan
562b21949f Deduplicate some foo_component_getFactory declarations.
Change-Id: I9304b62134bab375b721399ae078bf66e01191d8
2013-12-18 07:15:47 +01:00
Matúš Kukan
b6cebf4a3e Allow UNO component libraries to have each implementation in its own function.
Demonstrating on expwrap library.

There is hope, this will bring code size savings for mobile
platforms, where we don't need every implementation.

Change-Id: I3519fb6148fd7a47ed9df092c73779ea6add552f
2013-12-18 07:15:46 +01:00
Matúš Kukan
975f62aeaa gbuild: remove obsolete SOLARLIB
Change-Id: I6fcf5ff3a8f543079c3c8d37a728eb0ba6e0587e
2013-12-17 21:31:15 +01:00
Tor Lillqvist
f4502a2f7f These get defined through lo.xcconfig now
Change-Id: I4d574b728aa0a60808bcfdd36c503476c226599a
2013-12-17 15:17:42 +02:00
Tor Lillqvist
13b73d94dc Pass also Xcode's ARCHS, OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS in lo.xcconfig
ARCHS tells Xcode to build the architecture for which the LO code has
been built. The CFLAGS properties make sure the same -D flags are used
as for the LO code.

Change-Id: I3c8af0ff9fba7d0b4eddbc0af9aad44fb385314c
2013-12-17 14:22:11 +02:00
Tor Lillqvist
4dd32d6b2e Split out the setup of lo.xcconfig into a separate CustomTarget
Change-Id: If486cf470583205763722766da57303de904b321
2013-12-16 17:49:41 +02:00
Tor Lillqvist
6265876ae9 iOS tiled rendering work
Possibly quite broken intermediate commit. But anyway, now it is
possible to render the tile diretly to a CGContext. Can be seen in
the MobileLibreOffice app when build in the Debug_tile_tester
configuration. See touch_lo_draw_tile() in viewsh.cxx. Unfortunately
the old plain LibreOffice test app is now broken, though, and
displays nothing at all.

This refactoring and hacking in vcl was done in a quite ugly fashion,
with ifdefs etc. But trust me, I did try, several times, for many
days, to get where I wanted in an elegant and clean fashion. But doing
it cleanly meant not being able to actually build it for days while
trying to figure ut which bits go where and which class should be
split into what base and derived class(es), and it was too much for my
limited brain capacity. I just couldn't juggle all the vcl class
structure in my head, especially as I don't have any good
understanding of the general design of it all.

Change-Id: Ia59d6a9cce15a63e63f94e8d8574bef21993fb1f
2013-12-14 01:42:02 +02:00
Michael Meeks
59197dea29 Targetted text updates, with seasonable changes before l10n freeze.
Change-Id: If37ef9f68711da3a0aa9a3ba59b111a8a23421df
2013-12-13 17:00:07 +00:00
Marcos Paulo de Souza
eebc1e9a8a fdo#60698: Merge fastsax and sax_shared into expwrap
Change-Id: I6f8c6827c00db50184a46f39968f882b944d18d4
Reviewed-on: https://gerrit.libreoffice.org/6967
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-12-11 20:45:30 +00:00
Tor Lillqvist
0f5a7bc99f Add a file
Change-Id: I32bc4852396b0eff9962dc5cd007faf0bb9f5eaa
2013-12-11 18:17:19 +02:00
Tor Lillqvist
2fa2d39bf3 Use same test1.odt as in odk/examples/java/DocumentHandling/test
It includes a small PNG image, too.

Change-Id: I31169698a7573b7a6e272277a49cefe76c74f959
2013-12-11 15:25:29 +02:00
Tor Lillqvist
7b5ad4291c Add basebmp sources
Change-Id: Idcf6e210a888a80fa4adb7ac8532e4db075eebf7
2013-12-11 09:32:45 +02:00
Tor Lillqvist
5f29e8ab24 Add more source files for easier breakpointing in Xcode
Change-Id: Ibe97fe4a105d048c02d3af5263efc68d486afb06
2013-12-10 12:06:27 +02:00
Tor Lillqvist
ee1a055f41 Update file paths and names after c49721950cb3d897b35f08bf871239308680b18e
Change-Id: I2798800689809c8dfc3edede337f7667ff3248a1
2013-12-09 22:14:26 +02:00
Tor Lillqvist
9f53053eda Add types.rdb (formerly known as udkapi.rdb) to MobileLibreOffice
Keeping this stuff working is hard. How did I not notice this before?
I need to make clean more often I guess.

I edited the project.pbxproj file manually as I didn't fully get it
how to set up the wanted handling of this file in the Xcode GUI. So I
just copied the handling of offapi.rdb in project.pbxproj (with
different ids, of course).

I really much prefer doing this fully in Makefiles, as in
CustomTarget_LibreOffice_app.mk.

Change-Id: Ifc4f2481f7a9d1562be6f91714ed38c82cdd5eb0
2013-12-09 21:49:42 +02:00
Tor Lillqvist
dfe3df890a Make this actually work both when SRCDIR equals and not equals BUILDIR
Change-Id: I0287820bf0b5a1f0645bd032fb1071db5ce168c5
2013-12-05 20:08:29 +02:00
Tor Lillqvist
4106fe8d00 Use the lo-all-static-libs script
Change-Id: Id2bef2696d0bdc618d2fc53658ad8ba23bbad310
2013-11-22 17:07:41 +02:00
Tor Lillqvist
a9da5f78a4 Add a comment
Change-Id: If3e97386793f14bec9aae6c95500461177c18570
2013-11-22 16:05:44 +02:00
Tor Lillqvist
c403dd11cc Use the lo-all-static-libs script
Change-Id: I15605228af82f421ad40465a82661b98c91a3370
2013-11-22 16:05:43 +02:00
Tor Lillqvist
5281101bb9 Make this file behave saner in Emacs
Change-Id: I916aa32fcd8ab4b8ef13cfb2870e29c45ad8b60c
2013-11-22 16:05:42 +02:00
Tor Lillqvist
48c29ef3f8 Now we can re-add CustomTarget_MobileLibreOffice_app
Change-Id: Iefb00e72f2700503ea33a28c9f7e2150f0d1e06e
2013-11-22 15:19:12 +02:00
Tor Lillqvist
542dee77d4 Schemes don't exist in a clean tree, so use targets
The intent hopefully is that the MobileLibreOffice project should be
buildable in a freshly cloned or otherwise clean tree, where Xcode has
not been used interactively (which automatically creates a scheme for
each target, it seems).

Change-Id: I690513ecf54bb824dd3c3b0ef1735cc5cdff6d60
2013-11-22 15:19:12 +02:00
Tor Lillqvist
86c12faeb6 No lib_link directory is used any more
Change-Id: Ic21750744794b4721c28f4e2b23e5e5ca5d74db5
2013-11-22 15:19:12 +02:00
Tor Lillqvist
5238d79a7c Use hidden visibility as in the LO code here, too
Otherwise we get tons of (as such, in our case harmless) warnings from
the linker about mismatches.

Change-Id: I826d9e065bae59cdd213131163b31b2099806dd3
2013-11-22 13:34:45 +02:00
Tor Lillqvist
de4af9183c Don't redirect output to /dev/null if verbosity is requested
Change-Id: Idccc7cc8e9f81576bb24fec0a49144c0fcc16fd5
2013-11-22 13:34:45 +02:00