Code Monkey home page Code Monkey logo

Comments (9)

magreenblatt avatar magreenblatt commented on July 17, 2024

Comment 1. originally posted by magreenblatt on 2013-10-31T21:17:19.000Z:

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024

Original comment by Anonymous.


Comment 2. originally posted by [email protected] on 2014-06-20T13:59:27.000Z:

Hi Marshall,
here is a patch file which adds versioning to JCEF. I've used some python tools from your CEF project and modified them somewhat.

What I've done

[Java]
(*) Added nested Class CefVersion to CefApp
(*) Added method CefVersion getVersion() to CefApp
(*) Added native method N_GetVersion() to handle the JCEF version within the native code

[Native]
(*) Modified CefApp.cpp/.h to handle the java version method
(*) Added jcef_version.cpp with the function implementation of "jcef_version_info(int entry)"
(*) Modified jcef_dll.rc to use the JCEF version defines instead of CEF version defines

[Tools]
(*) Added make_version_header.[bat|sh] and make_version_header.py
(*) Added call to make_version_header.py into gyp_jcef
(*) Modified make_distrib.[bat|sh] and added make_distrib.py
(*) make_distrib.py creates the README.txt from Readme-templates in the directory "distrib"
(*) Added Readme templates README.footer.txt, README.header.txt, and the platform dependent ones README.standard.txt, README.redistrib.txt and removed all README.txt files
(*) Added several Python files from CEF (e.g. date_util.py, exec_util.py, file_util.py, gclient_util.py, git_util.py, svn_util.py)

If you execute "gclient runhooks" the jcef_version.h is generated on the fly and if you execute make_distrib.[bat|sh] the README.txt is generated from the template files and extended by the version numbers of JCEF, CEF and Chromium.

Regards,
Kai

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024

Comment 3. originally posted by magreenblatt on 2014-07-02T20:06:20.000Z:

Thanks for the patch. Some comments:

  1. I've make a few changes to make_distrib.bat (attached) to get it working on Windows 8.1:

A. The line "python.bat tools\make_distrib.py" needs to be prefixed with "call" or the script terminates and the .txt files are not copied.

B. The path to EXCLUDE_FILES.txt for xcopy /exclude needs to be hard-coded instead of using variable substitution because otherwise the command fails with a `Can't read file: ".\tools\distrib\EXCLUDE_FILES.txt"` error. This feels like a bug in xcopy since it can resolve the variable for the error message but not for actually reading the file.

  1. I've filed https://code.google.com/p/chromiumembedded/issues/detail?id=1330 for the incorrect Chromium URL in CEF's README.txt file.

  2. I've been using a 4-part version number for JCEF: CEF_MAJOR.CEF_MINOR.CEF_REVISION.JCEF_REVISION (e.g. 3.1750.1738.80). If we continue with this format then we could remove the new "VERSION" file and the JCEF_VERSION_MAJOR #define from jcef_version.h and just rely on parsing CEF's README.txt file in make_distrib.py instead.

  3. Is the jcef_version_info function necessary? It seems like the #defines in jcef_version.h should be sufficient since there are no callers from outside of the jcef library who would need the exported function.

  4. The name of the make_distrib.* scripts isn't really accurate since it just creates the README.txt file. Consider calling it make_readme.* instead.

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024

Original comment by Anonymous.


Comment 4. originally posted by [email protected] on 2014-07-03T06:38:14.000Z:

@ comment comment 3.:
Hi Marshall,
Thank you for your review.

Attached you'll find an updated patch file:

  • added your changes according make_distrib.bat
  • extended the version number to the 4-part pattern and removed JCEF_VERSION_MAJOR #define from jcef_version.h
  • removed jcef_version.cpp and the jcef_version_info function
  • modified the windows resource file to fit to the 4-part version number
  • renamed make_distrib.py to make_readme.py and added make_readme.[bat|sh]

Regards, Kai

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024

Comment 5. originally posted by magreenblatt on 2014-07-10T16:24:14.000Z:

@ comment 4.: Thanks, added in revision 95 with minor changes:

  • Include version number info in jcef_helper.exe.
  • Fix include header ordering in CefApp.cpp.

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024

Original changes by Anonymous.


  • set attachment to "2014-06-20_issue17_added_version_number.patch"

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024
  • set attachment to "make_distrib.bat.txt"

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024

Original changes by Anonymous.


  • set attachment to "2014-07-03_issue17_added_version_number.patch"

from java-cef.

magreenblatt avatar magreenblatt commented on July 17, 2024
  • set state to "resolved"

from java-cef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.