Commit Graph

65601 Commits

Author SHA1 Message Date
caiosignor 425a9a5fbd Separate eina_thred.c into eina_thread_posix.c and eina_thread_win32.c; Changed the meson.build to call theses files according to SO. 2020-04-29 12:13:38 -03:00
João Paulo Taylor Ienczak Zanette ed0287d23b windows: Add wrap for getopt 2020-04-29 11:07:36 -03:00
Lucas Cavalcante de Sousa 65278b6438 Windows: Fix JPTIZ comments
Remove debugging `asserts` and unnecessary parenthesis ta `if`.
2020-04-23 16:01:14 -03:00
Lucas Cavalcante de Sousa f7d1061a35 Bug: Compile `devs/expertise/native-windows` on Linux
Summary:
========
This PR makes `devs/expertise/native-windows` compile on linux.

lua was a little problematic:
luajit is a default option to bindings in `master` but at
`devs/expertise/native-windows` it was changed to lua, This PR brings
luajit back as a default option, but make a Windows build always use
lua - semantically equal to what happened at
`devs/expertise/native-windows`

Ref Issue #38

Linux Test plan:
================
- `meson` configured with `-Dbindigns=cxx,mono`;
- `ninja` should return every warning that `master` does, nothing else;
- `meson test -C <build dir>` should pass in everything that `master`
  does;

Windows Test plan:
==================
- Run `configure.bat` normally;
- Run `build.bat` it should yield the same erros/warnigs that
  `devs/expertise/native-windows` does;
2020-04-23 16:01:14 -03:00
João Paulo Taylor Ienczak Zanette 8437d20dc8 windows: Use correct pcre header, fix missing evil_unposix declaration 2020-04-23 15:14:47 -03:00
João Paulo Taylor Ienczak Zanette 23459a4eb5 windows: Add evil_unposix as declare_dependency when not in windows 2020-04-23 15:14:47 -03:00
João Paulo Taylor Ienczak Zanette 9af77e4929 windows: Stop wrong inclusion of unposix in subprojects 2020-04-23 15:14:47 -03:00
João Paulo Taylor Ienczak Zanette ae4f052980 windows: Transform zlib and pcre into wrap dependencies 2020-04-23 15:14:47 -03:00
Lucas Cavalcante de Sousa 160587f260 windows: Enable implicit-function-declaration error.
As implicit-function-declaration is a really important error for who is
reviewing/creating PR's I suggest to disable
`Wno-implicit-function-declaration` at meson build. The ones who need
the warning disabled can do it themselves.
2020-04-23 13:04:39 -03:00
Lucas Cavalcante de Sousa 7af8f90828 Windows:sys/time.h: Reamove linking error at localtime_s
Summary:
Remove the following linking error:
```
[18/1920] Linking target src/lib/evil/unposix/sys/evil_unposix_sys-1.dll.
FAILED: src/lib/evil/unposix/sys/evil_unposix_sys-1.dll
lld-link @src/lib/evil/unposix/sys/evil_unposix_sys-1.dll.rsp
lld-link: error: undefined symbol: localtime_s
>>> referenced by src/lib/evil/unposix/sys/f1142d4@@evil_unposix_sys@sha/time.c.obj:(l
ocaltime_r)
```

`localtime_t` is from `ucrt/time.h`. `#include <time.h>` was not picking
`UCRT` implementation of `time.h`, now it is changed to `#include
<../ucrt/time.h>`, forcing `UCRT`'s implementation.

If at some point `time.h` (`time.h` not `sys/time.h`) is add to
`unposix` this should be changed to `#include <../time.h>` as there
shoud be a `#include_next <time.h>`.

Test Plan:
- added -k0 to NINJAFLAGS at build.bat;
- there should not be any errors/warnings about sys/time.h.
- there will be a lot of other linkge errors, but none about finding
  methods defined at `sys/time.{h,c}`.
2020-04-03 15:54:03 -03:00
João Paulo Taylor Ienczak Zanette 1c6e5d314e windows: Pass flags to build.bat straight-forwardly 2020-04-02 09:51:17 -03:00
João Paulo Taylor Ienczak Zanette 5892e25875 windows: Define WIN32_LEAN_AND_MEAN only when in Windows 2020-04-01 18:24:53 -03:00
Lucas Cavalcante de Sousa d631343888 indows:sys/types.h: Should add every needed non pthread_* type
It does so by:
- including definitions that Windows already has;
- `typedef` the ones that Windows doesn't have, following `sys/types.h`
  manual guidelines;
- `pid_t` is a process id, so on this implementation is
  `typedef` as an `DWORD`, the type returned by `GetCurrentProcessId`
  function, and thus it is an `unsigned long`. `sys\types.h` manual
  establishes that it should be a `signed int` and when changed, it
  should not be larger than a `long`;

Test Plan:
- merged #PR16 then reset to my last commit, doing so to use
  `src/lib/evil/unposix/{meson.build,sys/meson.build};
- comment `-Wno-missing-variable-declarations` at `meson.build`;
- added `-k0` to `NINJAFLAGS` at `build.bat`;
- there should not be any errors/warnings about sys/types.h.
2020-04-01 18:24:53 -03:00
Lucas Cavalcante de Sousa f06c1747dd Windows:sys/time.h: Correct sys/time.h errors
Summary:
The way sys/time.h was added it was not being compiled in the right way.
PR#16 makes possible to compile unposix/sys, so it was possible to
detect some errors.
The errors were about fault includes.
Now there should be no compile errors at sys/time.h.

Depends on PR#16

Test Plan:
- comment -Wno-missing-variable-declarations at meson.build;
- added -k0 to NINJAFLAGS at build.bat;
- there should not be any errors/warnings about sys/types.h.
2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 135415bac7 windows: Link unposix statically 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso dced42bbfa automatic_pkgfile using sys_windows now 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso 50c6cc6cfc Integrating with elf meson build and build.bat 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso 66f4e10049 time restored 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso e499002bdd Fixing requested changes on version and pkgfile
- a project version was described, enabling the library version to
be used in the same way others meson.build from EFL describes it.
- another (but compatible) variable is used here to set the value
of 'automatic_pkgfile' because 'sys_windows' wasn't declared.
2020-04-01 18:24:52 -03:00
João Antônio Cardoso 73db22be20 Delete time.h 2020-04-01 18:24:52 -03:00
João Antônio Cardoso e6fe763b7d Delete time.c 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso 9eab181022 headers separated from sources 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso 633d5cec91 dumb mod just to test meson 2020-04-01 18:24:52 -03:00
Joao Antonio Cardoso d0033ba6d4 meson: compiling without efl meson project 2020-04-01 18:24:52 -03:00
Lucas Cavalcante de Sousa e291ab2005 Windows: sys/time.h: Fix jptiz comments 2020-04-01 18:24:52 -03:00
Lucas Cavalcante de Sousa 7257d900d1 Windows: sys/time.h: Now implementation is separeted from declaration as should be.
- `src/lib/evil/unposix/sys/time.c` was add to `src/lib/evil/meson.build`;
- .c and .h were separeted;
- Faulty timezone structure implemented

Test plan:
- Ninja with `-k0` flag compiles as much as with
`src/lib/evil/unposix/sys/time.c` as with the stub and there is no
aditional error.
2020-04-01 18:24:52 -03:00
Lucas Cavalcante de Sousa 5d5ae6860f sys/time.h: add WIN32_LEAN_AND_MEAN guards 2020-04-01 18:24:52 -03:00
Lucas Cavalcante de Sousa 82e9fb78a5 sys/time.h: add gettimeofday and localtime_r 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette c12949c9fa windows: Send -Wno-* flags to meson.build for a while 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 77fb4f9fe4 windows: Fixed Coquinho's comments 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette e42a4ca13b windows: Fix possible missing quotes in -D directory paths 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette f372afa94f windows: Ignore some more warnings 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 88859bc850 windows: Remove (now) duplicate mkdir define 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 4163277e28 windows: Add unposix to include path 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette f91b6786b3 windows: Add tons of posix header stubs. 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 0d2fdc2bb9 windows: Add --verbose option 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 8f50025309 windows: Fix zlib_dir description 2020-04-01 18:24:52 -03:00
João Paulo Taylor Ienczak Zanette 95fdd19a44 windows: Use ZLIB_DIR for zlib dependency lookup 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette 8ceea9ce08 windows: Create an evil_eapi.h to define EAPI 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette 641a58ebba windows: Ignore some warnings and add unistd, pthread and time.h. 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette e596cc2e31 windows: Ignore all warnings for a while. 2020-04-01 18:24:51 -03:00
Lucas Cavalcante de Sousa 452b6925fb `vcvarsx64` was not being saved for aftwords, not it is
Tested %vcvarsx64%:
1. `@echo %vcvarsx64% > test1`
2. run `build.bat` may times
3. `@echo %vcvarsx64% > test2`
4. `diff test1 test2` there should be no diference
Tested %path%:
1. `@echo %path% > test1`
2. run `build.bat` may times
3. `@echo %path% > test2`
4. `diff test1 test2` there should be no diference
2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette dca0792fa8 windows: Prevent path from stacking in every configure/build call. 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette df92a0ec6a windows: Use env.bat for paths (Fixes #1). 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette 73082c6489 windows: Use labels as functions. 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette a60f5c2c14 windows: Use --wipe only if build dir does not exist. 2020-04-01 18:24:51 -03:00
João Paulo Taylor Ienczak Zanette f9e21cd841 windows: Clearer build scripts and set colored output 2020-04-01 18:24:51 -03:00
Tiz 464fffac86 [WIP] Using native-file for windows. 2020-04-01 18:24:51 -03:00
Marcel Hollerbach b3786aa83a exactness: protect against forked calls
there came up a issue, where a excatness spawned processes were bringing
up a efreetd instance, when the efreetd instance turned off itself, the
files for exactness were written again, which is wrong. This ensures
that forked instances do not take any actions.

Differential Revision: https://phab.enlightenment.org/D11634
2020-04-01 19:25:36 +02:00
Stefan Schmidt 3598654965 release: Update NEWS and bump version for 1.24.0-alpha1 release 2020-04-01 12:51:51 +02:00